Commit Graph

8750 Commits

Author SHA1 Message Date
ThomasSession
6d12fe7adf Swapping avatars between user and contact's 2024-07-17 11:18:17 +10:00
ThomasSession
0130469230 Simplifying profile picture view
We don't need the isLarge option as the component's size is always set.
Using profilePictureView in the call screen.
2024-07-17 10:28:58 +10:00
AL-Session
1ca62629f6
SS-40 - MMS Notification Strings (#1541)
* Feature implemented

* Removed stray quotation mark

* Cleanup WIP

* Cleanup

* Addressed PR feedback

* Addressed further PR feedback

---------

Co-authored-by: alansley <aclansley@gmail.com>
2024-07-16 11:28:50 +10:00
Andrew
8b230bd120
Merge pull request #1542 from bemusementpark/update-lib
Update libsession
2024-07-11 22:07:41 +09:30
bemusementpark
5fd2a8896f Update libsession 2024-07-11 14:59:19 +09:30
ThomasSession
b510b064cf
[SES-1652] Swap video views in calls (#1533)
* WIP: swap video views

* feat: swap video views

* minor fixes

* minor fix

* minor fix

* update libsession-util

* Revert "update libsession-util"

This reverts commit 0d386e706e.

* reverse updating libsession-util

* update libsession-util

* Tweaking colors to match designs

* More theme fixes

* WebRTC rework

Only using two sinks and swapping between them
Reworked the device rotation logic as it didn't work well with pitch ( you could tip the device front to back and the rotation went out of whack, so had to resort to more robust calculation for the device orientation.
Had to use a deprecated sensor setting but it's the only one I could use that works.

* Video management logic update

Rounded corners for floating inset
Proper handling of video scaling based on video proportions
Proper handling of mirroring logic for floating/fullscreen videos depending on whether they are the user or the remote video and whether the camera is front facing or not

* Showing floating video inset only when there is at least one video stream active, hiding it when both are inactive

* Rotating controls on rotation

* Clean up

* Review feedback

* OrientationManager

The new OrientationManager encapsulate the orientation logic and sends out a mutable state flow

* PR feedback

---------

Co-authored-by: Ryan Zhao <ryanzhaors@qq.com>
Co-authored-by: Ryan ZHAO <>
2024-07-11 09:44:17 +10:00
AL-Session
2e3acd902f
SS-2168 - User profile warnings (#1531)
* Profile picture upload fail informs user

* End of day push

* Push before trying with okhttp library update

* WIP

* Further WIP

* Add additional debug comments

* Push before cleanup

* Cleaned up

* More cleanup

* Minor adjustment

* Final cleanup prior to PR review

* Removed commented out old conscrypt version import

* Addressed PR feeback from Fanchao

---------

Co-authored-by: alansley <aclansley@gmail.com>
2024-07-09 16:23:26 +10:00
ThomasSession
de7df58503
Merge pull request #1540 from oxen-io/release/1.18.5
Dev: Release/1.18.5
2024-07-09 14:35:55 +10:00
ThomasSession
b036bafa12
Merge pull request #1538 from oxen-io/revert-1536-release/1.18.5
Revert "Release/1.18.5"
2024-07-09 14:09:52 +10:00
ThomasSession
ad0b1a9db7
Revert "Release/1.18.5 (#1536)"
This reverts commit 8c4bd9b448.
2024-07-09 14:07:25 +10:00
ThomasSession
8c4bd9b448
Release/1.18.5 (#1536)
* Fix issue with span being the full length (#1528)

* Proper display of unresolved names in mentions (#1530)

* Fix issue with span being the full length

* Making sure a mention with a username without a resolved name still displayed with the appropriate style with the truncated is

* Testnet build (#1532)

Co-authored-by: fanchao <git@fanchao.dev>

* Allow "public.loki.foundation" to be accessed by http (#1534)

Co-authored-by: fanchao <git@fanchao.dev>

* Bumping the version code and name

* Reverting temporary change

---------

Co-authored-by: Fanchao Liu <273191+simophin@users.noreply.github.com>
Co-authored-by: fanchao <git@fanchao.dev>
2024-07-09 11:45:30 +10:00
ThomasSession
0300be25f6 Reverting temporary change 2024-07-09 09:58:49 +10:00
ThomasSession
2b27b7d5e0 Bumping the version code and name 2024-07-09 09:33:06 +10:00
Fanchao Liu
075341abe1
Allow "public.loki.foundation" to be accessed by http (#1534)
Co-authored-by: fanchao <git@fanchao.dev>
2024-07-08 11:24:37 +10:00
Fanchao Liu
e1f1372e17
Testnet build (#1532)
Co-authored-by: fanchao <git@fanchao.dev>
2024-07-08 10:34:13 +10:00
ThomasSession
15b3b18321
Proper display of unresolved names in mentions (#1530)
* Fix issue with span being the full length

* Making sure a mention with a username without a resolved name still displayed with the appropriate style with the truncated is
2024-07-05 10:48:51 +10:00
ThomasSession
bbb1b2b517
Fix issue with span being the full length (#1528) 2024-07-04 17:50:17 +10:00
AL-Session
1e02845fd2
[SES-1486] Short voice message fix (#1523)
* Initial working push with debug comments

* Fixes #1522

* Cleanup, prevent multi-pointer recording, and don't show short msg toast if locked to record quickly

* Adjusted comment phrasing

* Fix comment phrasing

* Fixed inadvertant short voice message toast on exit conversation activity

* Comment adjustment

* Comment phrasing

* Adjusted AudioRecorder.startRecording to take a callback function rather than the InputBar

* Performed Thomas' PR feedback

* Move comment to more relevant place

* Removed unused / leftover callback definition

* Removed all redundant null checks after asserting binding is not null

* Removed remaining not-null assertions & added some logged feedback to fail states

* Addressed PR feedback

* Implemented additional PR feedback

* Adjusted InputBar property visibility as per PR feedback & adjusted Toast string following discussion with Lucy

* Minor adjustment to inform user if we see an obvious network issue when sending a voice message - also tweak the locked Cancel button size to prevent text entry when locked to voice recording

* Adjust comment phrasing following further testing

* Added TODO comments to replace hard-coded string in toasts

* Addressed Thomas PR feedback suggestion

* Addressed another feedback suggestion

* Adjustment to continue informing user of network / node path issues

* Improved & moved network check method

* Corrected ticket number into TODO comments

* Addressed Andy PR feedback

* Adjust network connectivity checks to just log issues rather than inform the user (as per Rebecca / Kee convo)

---------

Co-authored-by: alansley <aclansley@gmail.com>
2024-07-03 14:44:26 +10:00
AL-Session
a30f00104e
[SS-54] Add dialog to allow local deletion if network deletion fails (#1526)
* WIP

* Push before attempting some HTTPRequestFailedException rate limiting

* Functionality now works

* Merging dev resulted in some subproject commit change so pushing that

* Fixes #1525

* Addressed Andy PR feedback

* Addressed further PR feedback from Andy

---------

Co-authored-by: alansley <aclansley@gmail.com>
2024-07-02 16:42:49 +10:00
Fanchao Liu
0da949c8e6
[SES-1966] Attachment batch download and tidy-up (#1507)
* Attachment batch download

* Addressed feedback and test issues

* Feedback fixes

* timedWindow for flow

* Feedback

* Dispatchers

* Remove `flowOn`

* New implementation of timedBuffer

* Organise import

* Feedback

* Fix test

* Tidied up logic around `eligibleForDownload`

* Updated comment

---------

Co-authored-by: fanchao <git@fanchao.dev>
2024-07-01 17:36:50 +10:00
Fanchao Liu
fec67e282a
[SES-2018] Refactor mention (#1510)
* Refactor mention

* Fixes robolectric test problem

* Fixes tests

* Naming and comments

* Naming

* Dispatcher

---------

Co-authored-by: fanchao <git@fanchao.dev>
2024-07-01 17:31:03 +10:00
ceokot
a260717d42
Highlight @You mentions (#985)
* Highlight @You mentions

* fix: resolve merge conflicts

* Setting the proper design rules for mentions

* New RoundedBackgroundSpan, applied to "you"  mentions

The rounded background highlighter can take padding, so there is no need to add those extra spaces at the start and end.

* Better mention highlight logic

Some mention highlight should only format the text and not apply any styling.
Also making sure we cater for all cases properly

* Updated the text color logic based on design rules

* Fine tuning the color rules

* Removing usage of Resources.getSystem()

Only making the db call if there actually is a mention

* Moving color definition outside the loop to avoid repetitions

---------

Co-authored-by: charles <charles@oxen.io>
Co-authored-by: 0x330a <92654767+0x330a@users.noreply.github.com>
Co-authored-by: ThomasSession <thomas.r@getsession.org>
2024-07-01 14:52:18 +10:00
Andrew
1d80bb0ba9
[SES-337] Add rounded corners to thumbnail in QuoteView (#1285)
* Add rounded corners to thumbnail in QuoteView

* Simplify ThumbnailView

* Cleanup ThumbnailView

* Removed include custom attributes

The custom attributes are not passed to the view.
I added the radius programatically instead.

* Clipping whole thumbnail view instead of just the image requests

---------

Co-authored-by: AL-Session <160798022+AL-Session@users.noreply.github.com>
Co-authored-by: ThomasSession <thomas.r@getsession.org>
2024-07-01 09:41:46 +10:00
Andrew
5cd2cf5cb5
Merge pull request #1527 from bemusementpark/update-libsession
Update libsession
2024-06-28 09:31:58 +09:30
Andrew
2dbdd6b0ae Update libsession 2024-06-27 17:07:45 +09:30
Fanchao Liu
0f47076192
[SES-2162] - Remove wrapping of config message (#1517)
* Remove wrapping of config message

* Addresses feedback

* Merged in ThreadUtils fix

* JDK installation

* Revert JDK change

---------

Co-authored-by: fanchao <git@fanchao.dev>
2024-06-27 10:12:54 +10:00
ThomasSession
a0e6167718
Merge pull request #1352 from rugveddarwhekar/master
Fixed #1085 | Video call auto rotate, when auto rotate is disabled
2024-06-25 10:21:47 +10:00
ThomasSession
c711d35edd
Merge pull request #1521 from oxen-io/remove-config-cheks
Remove config checks (PR 1294)
2024-06-25 10:04:29 +10:00
ThomasSession
d22cb1e2c2 Remove config checks (PR 1294)
Refactor: remove checks for whether new config is enabled throughout config factory generation.
First commit from PR 1294.
2024-06-25 09:25:46 +10:00
ThomasSession
752f8cc738
Merge pull request #1298 from bemusementpark/fix-send-whitespace
Hide send button when message contains only whitespace
2024-06-24 17:27:45 +10:00
ThomasSession
031a18061d Using trim and empty to capture semantic concept of nothing being in there 2024-06-24 17:26:36 +10:00
ThomasSession
48aacae6c5 Merge branch 'dev' into pr/1298 2024-06-24 17:22:06 +10:00
ThomasSession
01655b8633
Merge pull request #1508 from simophin/fix-home-screen-dispatcher
Correct the usage of flowOn
2024-06-24 17:08:37 +10:00
ThomasSession
9c20ca2017
Merge pull request #1520 from simophin/fix-threading-issue
Remove the use of executor in ThreadUtils
2024-06-24 16:50:33 +10:00
fanchao
0547dde554 Remove the use of executor in ThreadUtils 2024-06-24 14:05:06 +10:00
ThomasSession
1619277b4f
Merge pull request #1026 from ceokot/sogs-auth
fix: Authenticate all Open Group API calls
2024-06-24 11:12:03 +10:00
ThomasSession
0d0a86831a Merge branch 'dev' into pr/1026 2024-06-24 10:04:19 +10:00
ThomasSession
ba9f729d63
Merge pull request #1512 from simophin/ses-2021-improve-xml-loading
[SES-2021] Optimise XML loading
2024-06-21 12:53:22 +10:00
ThomasSession
46358f4318
Merge pull request #1487 from simophin/ses-637-voice-message-keeps-playing
[SES-637] - Stop playing message if deleted
2024-06-21 12:51:06 +10:00
ThomasSession
32cc6df81b
Merge pull request #1336 from bemusementpark/unsend-notification
Fix notification update for incoming unsend request
2024-06-20 15:48:43 +10:00
ThomasSession
d3c4e11aec
Merge pull request #1332 from aaronkerckhoff/display-own-name-in-quote
Fix bug displaying user ID when quoting own message
2024-06-20 15:47:16 +10:00
fanchao
2c90717235 Merge remote-tracking branch 'upstream/dev' into ses-637-voice-message-keeps-playing 2024-06-12 10:09:31 +10:00
fanchao
d0e4148040 Remove view pools 2024-06-11 15:26:01 +10:00
fanchao
072accb1e1 Remove unused file 2024-06-11 14:10:56 +10:00
fanchao
54bb84541a Optimise XML 2024-06-11 13:38:03 +10:00
fanchao
6e24df0547 Import 2024-06-04 10:46:02 +10:00
fanchao
172edde628 Correct the usage of flowOn 2024-06-04 10:41:15 +10:00
Andrew
9b6fa0db01
Update version for release-1.18.4 2024-05-30 09:38:33 +09:30
Andrew
c0912bbe6d
Merge pull request #1501 from simophin/SES-2009-blinded-conversation
[SES-2009] Fix crashes on blinded conversation
2024-05-29 16:32:26 +09:30
fanchao
9441fdec21 Merge remote-tracking branch 'upstream/dev' into SES-2009-blinded-conversation 2024-05-29 15:22:57 +10:00