Commit Graph

960 Commits

Author SHA1 Message Date
Ryan ZHAO
b0edfef6a9 fix an issue when onboarding gets stuck in 421 loop when trying to fetch UserProfile config 2024-05-29 15:34:45 +10:00
fanchao
35335480ca Merge remote-tracking branch 'upstream/dev' into ses-1936-oom 2024-05-27 13:37:00 +10:00
Andrew
a660f45043 Fix timestamp cache for communities 2024-05-21 11:27:06 +09:30
fanchao
75e53c86b1 Fixes SES-1936 2024-05-21 11:44:08 +10:00
Andrew
f114ac84bd Fix last sent updated by non-self 2024-05-20 14:05:34 +09:30
Andrew
4904524af5 Fix excessive last sent calls 2024-05-20 13:58:13 +09:30
Andrew
a2a112e8b1
Prevent reloading sodium (#1485) 2024-05-17 12:54:57 +09:30
Andrew
8ef8107101 Merge branch 'dev' into on 2024-05-15 11:15:11 +09:30
Andrew
cad96001d1 Merge branch 'dev' into on-2 2024-05-08 15:59:53 +09:30
Andrew
1f1c51669c Update empty search 2024-05-08 13:16:46 +09:30
Andrew
d16faf94c9
Merge dev (#1468)
* Remove unused sizeResId

* Fix caching

* Prefix message with name in HomeActivity

* Hide sender prefix for note to self

* Hide sender prefix for control messages

* Remove problematic getLastMessage()

* Refactor snippet formatting

* Remove unused RecoveryPhraseRestoreActivity

* Fix unresolved theme attributes exception

* Fix dialog button style

* Investigation in progress

* Working fix push before cleanup

* Fixes #1346

* Removed unused logging imports

* Put back some whitespace

* Minor cleanup

* Fix NPE on null display name

* fix: disappearing viewmodel tests (#1432)

* SES-1354 - Video call self viewer not mirrored (#1397)

* Fixes #874

* Removed accidentally left in line

* Fixed issue - push before cleanup

* Cleaned up

* Removed cruft

---------

Co-authored-by: = <=>
Co-authored-by: AL-Session <160798022+AL-Session@users.noreply.github.com>

* SES-1145 - New messages are hidden under keyboard - MK3 (#1415)

* WIP

* Working - push before cleanup

* Fixes #1316

* Cleanup

* PR review adjustments

* Fixed scrolling when receiving an image based message while keyboard is up

* Prevent auto-scroll to last seen item pos in conversation view if <= 3

* Put back <=3 check to scroll

---------

Co-authored-by: = <=>
Co-authored-by: AL-Session <160798022+AL-Session@users.noreply.github.com>

* Fix missing parenthesis

* SES-789 - Scroll to bottom of long new message(s) (#1426)

* WIP

* Working - push before cleanup

* Fixes #1316

* Cleanup

* PR review adjustments

* Fixed scrolling when receiving an image based message while keyboard is up

* Prevent auto-scroll to last seen item pos in conversation view if <= 3

* Put back <=3 check to scroll

* Forced scrolling to bottom of long messages (both sent and received) when already at the bottom of the RecyclerView

* Fixes #1364

---------

Co-authored-by: = <=>
Co-authored-by: AL-Session <160798022+AL-Session@users.noreply.github.com>

* SES-1352 - User and group names allowing multi-line strings (#1395)

* Fix WIP

* Resolved issue - pushing before cleanup & PR tomorrow morning

* Enforced single line for new closed group names

* Fixes #1394

* Final cleanup prior to PR

* Added code to restore a previous contact nickname if an empty one is given

* Added initial limits to nicknames and group names, both creation and display

* Minor adjustments

* Adjusted max nickname and group name to 35 chars as per Kee's instructions

* Fixed closed group edit text able to get too wide and cut off buttons

---------

Co-authored-by: = <=>
Co-authored-by: AL-Session <160798022+AL-Session@users.noreply.github.com>
Co-authored-by: Al Lansley <al@oxen.io>

* SES-212 - Always show delivery status of last sent message - FINAL! (#1418)

* Fixes #1408

* Addressed PR feedback

* Cleanup

* PR adjustments

* Further PR adjustments

* Updated libsession-util

* Added fix for crash when no messages

* Ignoring dirty submodules so they don't show up in git

* Re-fixed display of delivery status on last sent message (got broken by disappearing messages)

* Removed ignore dirty modules line in .gitmodules as it all seems to be playing nice now

---------

Co-authored-by: AL-Session <160798022+AL-Session@users.noreply.github.com>
Co-authored-by: Al Lansley <al@oxen.io>

* fix: use a set for the from/to serialized lists (#1370)

* Fixes #1347 (#1396)

Co-authored-by: AL-Session <160798022+AL-Session@users.noreply.github.com>
Co-authored-by: Al Lansley <al@oxen.io>

* SES-1156 - Ban and delete functionality fix (#1428)

* WIP

* Investigation in progress

* End of day push

* WIP

* Fixes #1416

* Cleanup

* Added code to remove zombie messages caught in limbo during a ban & delete - still chock full o' debug while finding root cause

* Root cause debug WIP

* Push prior to cleanup

* Cleaned up for PR

* fix: mms delete, remove unnecessary values from sms

* Addressed PR feedback

* fix: fix unit tests

* Added '.run' folder with test setup

* Update README.md

Test commit for CI

* Re-added accidentally removed closing brace

---------

Co-authored-by: alansley <aclansley@gmail.com>
Co-authored-by: Al Lansley <alansley@users.noreply.github.com>
Co-authored-by: 0x330a <92654767+0x330a@users.noreply.github.com>

* SES-1356 - List of recently used reaction emojis is not accurate (#1400)

* WIP

* Further WIP

* Push prior to cleanup

* Fixes #1015

* Added limiting to the count of recently used emoji that we store

* Put back adjusted reaction pill layout to standard

* Adjusted recently used reaction emojis already in list to go to start of list

---------

Co-authored-by: = <=>

* SES-697 - Add loading state when exporting logs (#1402)

* WIP

* Fixes #1401

* Cleanup from PR view

* Final cleanup

* Removed commented line of code & re-ordered comment

* Addressed PR feedback

* Re-allowed loading of avatars to throw exceptions rather than return null on failure

---------

Co-authored-by: = <=>

* SES-1251 - App crash on non alphanumeric first char search (#1393)

* Investigation in progress

* Working fix push before cleanup

* Fixes #1346

* Removed unused logging imports

* Put back some whitespace

* Minor cleanup

* Push before cleanup

* Fixes #1346 - properly this time!

* SES1567 - Community message delivery status fix (#1442)

* Initial investigation

* WIP

* Continued work to track down cause of delivery status issue

* Fixes #1438

* Cleanup for PR

* Further cleanup

* Fixed merge conflict

* Addressed PR feedback

---------

Co-authored-by: alansley <aclansley@gmail.com>

* Tiny adjustment to center user name in Settings activity (#1446)

* Addressed PR feedback

* Cleanup

* Initial fix implemented

* Fixes #1448

* Addressed PR feedback

* SES1688 - Deleting last message in conversation, group, or community leaves the RecyclerView in a broken state (#1449)

* Initial fix implemented

* Fixes #1448

* Addressed PR feedback

* Handle case where there are no messages

* build: update build number

* Fix spacing when title is absent

* Hide reply button in MessageDetails for group invitations

* Remove reply from context menu for open group invitations

* Ignore swipe reply to open group invitation

* Fix multiple quote previews

* Fix message menu icons not visible in light theme

* Hide reply app bar menu item for open group invite

* SES-1727 Mentions text is the wrong colour (#1454)

* Fixes #1453

* Cleanup

* Code review adjustments

* Adjusted mentions to use the accent colour as their background colour when using light themes

---------

Co-authored-by: alansley <aclansley@gmail.com>

* Disable swipe to reply on open group invites

* Fix multiple link previews

* SES1718 - Message Sending Status (#1462)

* Investigation in progress

* Initial push for PR

* Fixes #1461

* Removed leftover debug comments

* Added minor optimisation to showMessageStatus method (bail early if the message isn't one we care about displaying details of to the user)

* Minor cleanup

* Tiny cleanup

* Addressed PR feedback

* Removed forgotten debug log line & forced delivery status elements to be removed on non-visible messages just in case

* Minor refactor to simplify 'VisibleMessageView.showStatusMessage'

---------

Co-authored-by: alansley <aclansley@gmail.com>

* Fix margins

* WIP

* Commit before converting SmsDatabase from Java to Kotlin

* Remove old expiration config strings from UpdateMessageBuilder

* Fix group expiration update config messages

* Fixed conversation view closing + hopefully wrong status text displayed + deletion of contact on removal of last message in 1-on-1 convo

* Cleanup for PR review

* Implemented PR feedback

* Don't start expiration for group expiration update messages

* Fix expiry update message for groups

* Correctly don't start disappear timer on group timer updates

* SES1813 - Fix regression test failures (#1473)

* Initial fix for regression test failure 1.1

* Added permissions fix for sharing documents which should allow for thumbnail generation

* Minor touch-up prior to merge into dev

* Fixes #1813

* Fixes #1472 - please ignore previous fixes 1813 statement, I'd used the Jira ticket number rather than creating a GitHub issue and using that

---------

Co-authored-by: alansley <aclansley@gmail.com>

---------

Co-authored-by: alansley <aclansley@gmail.com>
Co-authored-by: 0x330a <92654767+0x330a@users.noreply.github.com>
Co-authored-by: Al Lansley <alansley@users.noreply.github.com>
Co-authored-by: AL-Session <160798022+AL-Session@users.noreply.github.com>
Co-authored-by: Al Lansley <al@oxen.io>
2024-05-01 12:59:33 +10:00
AL-Session
629f98dfb4
SES1813 - Fix regression test failures (#1473)
* Initial fix for regression test failure 1.1

* Added permissions fix for sharing documents which should allow for thumbnail generation

* Minor touch-up prior to merge into dev

* Fixes #1813

* Fixes #1472 - please ignore previous fixes 1813 statement, I'd used the Jira ticket number rather than creating a GitHub issue and using that

---------

Co-authored-by: alansley <aclansley@gmail.com>
2024-05-01 11:52:09 +10:00
Andrew
89d93bc80d Merge branch 'dev' into on-2 2024-04-24 17:43:04 +09:30
Andrew
dbe3834dc1 Fix expiry update message for groups 2024-04-22 11:58:27 +09:30
Andrew
0ba18dcd46 Fix group expiration update config messages 2024-04-18 13:40:02 +09:30
Andrew
207da18115 Remove old expiration config strings from UpdateMessageBuilder 2024-04-18 12:59:53 +09:30
AL-Session
96510946c6
SES-1727 Mentions text is the wrong colour (#1454)
* Fixes #1453

* Cleanup

* Code review adjustments

* Adjusted mentions to use the accent colour as their background colour when using light themes

---------

Co-authored-by: alansley <aclansley@gmail.com>
2024-04-16 13:37:13 +10:00
Andrew
eb958bac4e Merge branch 'on' into on-2 2024-04-09 10:29:05 +09:30
Andrew
1ace9ea86c Merge branch 'dev' into on 2024-04-09 10:13:31 +09:30
Andrew
ac97529c73 Remove unnecessary shared pref 2024-04-09 08:21:41 +09:30
Andrew
b5af8de4f9 Show tada emoji empty screen on new account 2024-04-08 11:36:09 +09:30
AL-Session
be11b1659f
SES1567 - Community message delivery status fix (#1442)
* Initial investigation

* WIP

* Continued work to track down cause of delivery status issue

* Fixes #1438

* Cleanup for PR

* Further cleanup

* Fixed merge conflict

* Addressed PR feedback

---------

Co-authored-by: alansley <aclansley@gmail.com>
2024-04-04 11:37:39 +11:00
Andrew
3ae2dc5bc5 Merge branch 'dev' into on 2024-04-03 10:02:44 +10:30
Al Lansley
d3c8635748
SES-697 - Add loading state when exporting logs (#1402)
* WIP

* Fixes #1401

* Cleanup from PR view

* Final cleanup

* Removed commented line of code & re-ordered comment

* Addressed PR feedback

* Re-allowed loading of avatars to throw exceptions rather than return null on failure

---------

Co-authored-by: = <=>
2024-04-03 09:53:20 +11:00
AL-Session
a8a257a1a6
SES-1156 - Ban and delete functionality fix (#1428)
* WIP

* Investigation in progress

* End of day push

* WIP

* Fixes #1416

* Cleanup

* Added code to remove zombie messages caught in limbo during a ban & delete - still chock full o' debug while finding root cause

* Root cause debug WIP

* Push prior to cleanup

* Cleaned up for PR

* fix: mms delete, remove unnecessary values from sms

* Addressed PR feedback

* fix: fix unit tests

* Added '.run' folder with test setup

* Update README.md

Test commit for CI

* Re-added accidentally removed closing brace

---------

Co-authored-by: alansley <aclansley@gmail.com>
Co-authored-by: Al Lansley <alansley@users.noreply.github.com>
Co-authored-by: 0x330a <92654767+0x330a@users.noreply.github.com>
2024-04-03 09:30:15 +11:00
0x330a
901e800012
fix: use a set for the from/to serialized lists (#1370) 2024-03-27 15:20:50 +11:00
Andrew
e25b90b229 Improve new convo error messages 2024-03-27 12:22:53 +10:30
Andrew
3773f4fbc9 Merge branch 'dev' into unsend-notification 2024-03-25 13:35:27 +10:30
Andrew
4e6fe1fc9d Fix missing parenthesis 2024-03-25 13:28:01 +10:30
Andrew
a3c685196e Merge branch 'dev' into fix-attr-ex 2024-03-25 13:24:54 +10:30
Andrew
d083b19a12 Merge branch 'dev' into on 2024-03-16 14:27:18 +10:30
Andrew
4279c4b456 Merge branch 'dev' into on 2024-03-15 10:24:52 +10:30
Andrew
36edca855c
Merge pull request #1430 from bemusementpark/fix-null-display-name
Fix NPE on null display name
2024-03-13 11:19:09 +10:30
0x330a
3dee7ec6bd
fix: disappearing viewmodel tests (#1432) 2024-03-13 11:31:08 +11:00
Andrew
3cba05e668 Fix NPE on null display name 2024-03-12 11:32:47 +10:30
0x330a
b62656b1be
feat: add new config enabled timestamp 2024-02-28 17:54:00 +11:00
0x330a
c2ab92e14d
feat: add new config enabled timestamp 2024-02-28 17:52:02 +11:00
Andrew
76f8e9867b Remove logs in UpdateMessageBuilder 2024-02-28 14:25:05 +10:30
Andrew
51f2c3557d Remove log 2024-02-27 16:20:41 +10:30
0x330a
e8c61d6791
fix: remove new group invite clearing flags and handling new configs better 2024-02-22 15:25:51 +11:00
0x330a
f6d351f9c3
fix: remove disappearing config overwrite and fix EC key pair's pubkey being group's identity pubkey 2024-02-22 13:32:03 +11:00
Andrew
affdf1ca07 Disable disappearing closed group messages 2024-02-22 12:25:20 +10:30
Andrew
3cd5ca4a6d Simplify ClosedGroupControlMessage#fromProto 2024-02-21 01:17:32 +10:30
Andrew
39df560f0c Don't shorten ttl of closedGroupControlMessage 2024-02-21 01:16:05 +10:30
Andrew
f5121770ec Remove erroneous expiration on SharedConfigurationMessage 2024-02-20 16:45:23 +10:30
Andrew
a1fadcfa91 Disable closed group control messages disappear 2024-02-19 15:57:10 +10:30
Andrew
c3b416f76c Fix Message#isValid 2024-02-19 12:35:46 +10:30
Andrew
ef50d63410 Cleanup logs 2024-02-19 09:37:53 +10:30
Andrew
398b5bf7b4 Cleanup 2024-02-19 01:23:06 +10:30
Andrew
7c4060a8c4 Cleanup closedGroupMessage serialisation 2024-02-17 17:05:18 +10:30
Andrew
637b7f8249 Fix expiry mode application to Message 2024-02-09 11:13:10 +10:30
Andrew
e7a5be2c73 Fix ExpirationTimerUpdate deserialisation 2024-02-02 18:25:36 +10:30
Andrew
4c7485f53d Fix Message#expiryMode de/serialisation 2024-01-30 15:53:24 +10:30
Andrew
cb0327ecb2 Fix follow setting contentDesc 2024-01-23 14:39:18 +10:00
Andrew
97d6c9928f Fix contentDescriptions 2024-01-23 14:24:10 +10:00
Andrew
43745ce995 Retrieve expiry config from UpdateMessage for GroupsV1 2024-01-23 12:09:36 +10:00
Andrew
848dbd2eb0 Start expiration at end of handling each message type treating call and extraction as DaR 2024-01-23 09:09:16 +10:00
0x330a
106305f118
fix: outdated banner showing and updating on messages properly 2024-01-18 13:46:46 +11:00
Andrew
1ada072884 Copy expiryMode from proto for all Messages 2024-01-17 00:43:37 +10:30
Andrew
12edb9dff9 Coerce disappear type to DaR for Calls and DataExtraction 2024-01-12 11:20:23 +10:30
Andrew
7b26de5bd6 Fix disappear after read 2024-01-11 12:34:41 +10:30
Andrew
6fbae28d70 Fix sent messages disappearing when disappear is off 2024-01-11 12:19:02 +10:30
Andrew
2e62bb15ff Remove intuit expiry settings from normal messages 2024-01-11 12:15:14 +10:30
Andrew
7fd036dee9 Use same dummy hash as ios and desktop in getExpiries() 2023-12-18 13:36:44 +10:30
Andrew
06c258364f Use new strings for follow setting control message 2023-12-15 16:36:02 +10:30
Andrew
988040b577 Hide follow settings button when not applicable 2023-12-15 11:48:54 +10:30
andrew
cf0dbffafd Add follow setting button 2023-12-07 17:50:30 +10:30
andrew
62ef9d3ed4 Add hide password dialogs 2023-11-30 00:45:53 +10:30
andrew
a5a226b468 Allow legacy expiration updates when flag is off 2023-11-29 10:16:54 +10:30
andrew
7bd43b1b3c Fix control messages 2023-11-28 12:47:27 +10:30
andrew
eb97c698f2 Fix disappearing messages proto OFF message 2023-11-20 11:09:41 +10:30
0x330a
d6ba78606e
fix: activate the banner only if conversation is in expiring mode not none 2023-11-16 11:44:21 +11:00
0x330a
56878dbd35
refactor: add sender to be the person to trigger the legacy message send (in case of closed group updates) 2023-11-13 10:33:48 +11:00
andrew
a312ef2b25 Simplify ExpirationTimerUpdate 2023-11-10 12:52:35 +10:30
andrew
29099901d1 Pick correct config on receive message 2023-11-10 12:51:58 +10:30
andrew
617dbc8799 Remove unused ConversationItemFooter 2023-10-27 13:20:37 +10:30
andrew
2228a05b2e Fix control message text 2023-10-26 14:23:09 +10:30
andrew
a9467c7b96 [SES-1203] Disable radio buttons 2023-10-20 13:32:16 +10:30
andrew
019a86482a Fix timestamps 2023-10-16 13:34:10 +10:30
andrew
c24741af62 Remove erroneous disappearing message validations 2023-10-16 09:16:44 +10:30
andrew
793fe63260 Merge branch 'dev' into disappear-2 2023-10-13 15:51:43 +10:30
0x330a
862a47e7e3
feat: add drop attachment download migration in case there are a lot of pending failed attachment downloads 2023-10-11 17:37:39 +11:00
0x330a
e06f9ee79a refactor: change storage adding contacts to create one on ones with a non hidden thread priority and base for testing storage expiration merges from fake polling 2023-10-11 11:14:01 +11:00
andrew
f71c56022d Merge branch 'dev' into disappear-2 2023-10-11 09:48:36 +10:30
andrew
4313eee33b Fix notification update for incoming unsend request 2023-10-11 01:57:33 +10:30
andrew
77f951cadf Use separate tables for mms and sms in LokiMessageDatabase 2023-10-11 01:53:08 +10:30
0x330a
d92e798618
feat: add timestamp update based on message merging success 2023-10-06 17:19:56 +11:00
0x330a
20df73355d
fix: or should be and (#1334) 2023-10-06 13:56:47 +11:00
andrew
892e4b75ec Merge branch 'dev' into disappear-2 2023-10-06 12:01:23 +10:30
andrew
ebbe928fd2 Sync disappear after read with other devices 2023-10-05 12:50:42 +10:30
0x330a
84bc1dcb6b
Update session libsodium (#1326)
* chore: update dependencies for the libsodium dependency and replace aar

* fix: update gradle dependencies to work with integration tests

* fix: test

* refactor: make it use espresso wait

* refactor: bring compose dependencies back to stable releases
2023-10-04 15:17:27 +11:00
0x330a
77a18e337b
Maybe fix oob in media preview adapter cursor adapter (#1324)
* fix: maybe fix oob exception?

* fix: attachment download was broken again

* refactor: wrap in an if and log warning in the bad state
2023-10-04 15:17:07 +11:00
andrew
a7111b0d49 Simplify VM 2023-09-19 13:45:59 +09:30
andrew
885df1e22b Refactor 2023-09-18 01:49:41 +09:30
andrew
14938d2cc0 Fix note-to-self not disappearing 2023-09-14 19:13:27 +09:30
andrew
8b07ffcd2b Fix unresolved theme attributes exception 2023-09-13 14:33:02 +09:30
0x330a
380d6694ea
fix: treat self sends correctly when no contact information for ourself (#1318) 2023-09-07 16:54:38 +10:00
andrew
96afa8d23f Fix expiry timer millis conversion 2023-09-05 14:07:41 +09:30
andrew
ba0ca7d260 Remove Storage#setExpirationTimer 2023-09-02 19:53:43 +09:30
andrew
519bf38ee0 Merge branch 'dev' into disappear-2 2023-09-01 17:21:19 +09:30