Commit Graph

2697 Commits

Author SHA1 Message Date
Andrew
bf692e8346 Clean imports 2024-06-06 11:25:18 +09:30
Andrew
b571348a66 Refactor temporary buttons 2024-06-06 11:22:36 +09:30
Andrew
c489765a50 Add contentDescriptions 2024-06-06 11:00:51 +09:30
Andrew
50addd644c Merge branch 'on' into on-2 2024-06-06 09:21:49 +09:30
Andrew
2cca1d4d8c Tweak animations and make it scrollable on small screens 2024-06-05 12:05:58 +09:30
Andrew
d0ebd3533b Reinstate landing chat animation 2024-06-04 23:17:00 +09:30
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
Ryan ZHAO
a37039cebf retrieve user profile only during onboarding 2024-05-30 16:08:05 +10:00
Andrew
59910eeb48 Merge branch 'dev' into on 2024-05-30 11:09:51 +09:30
Ryan ZHAO
4acc42730b Merge branch 'on' of https://github.com/bemusementpark/session-android into poller-fix 2024-05-30 10:28:44 +10:00
Andrew
9b6fa0db01
Update version for release-1.18.4 2024-05-30 09:38:33 +09:30
Andrew
fe29bce70d
Merge pull request #1497 from bemusementpark/ses-1948
[SES-1948] Do not fetch quotes recursively
2024-05-29 13:23:27 +09:30
Andrew
6e887fe43e
Merge pull request #1503 from bemusementpark/ses-1949
[SES-1949] Move unapprovedMessageCount to IO
2024-05-29 12:11:10 +09:30
Andrew
410e298bca
Merge pull request #1492 from simophin/ses-1931-fix-debouncer
[SES-1931] - Fix debouncer crash
2024-05-29 11:38:29 +09:30
Andrew
66c0f940aa
Merge pull request #1494 from simophin/ses-1935-audio-recording-crash
[SES-1935] Audio recording crash
2024-05-29 11:38:00 +09:30
Andrew
34baa9dc89
Merge pull request #1481 from bemusementpark/s1889
[SES-1889] Fix IndexOutOfBounds in MediaPreview
2024-05-29 10:40:45 +09:30
Andrew
69c50e6822 Dont reassign messageRequests if value didn't change 2024-05-29 10:29:47 +09:30
Andrew
4fab64e6ee Schedule share pref 2024-05-28 19:29:24 +09:30
Andrew
04215f74e1 Bind message requests in HomeAdapter 2024-05-28 16:44:49 +09:30
Andrew
cd302f9f27 Move unapprovedMessageCount to IO 2024-05-28 12:57:50 +09:30
Andrew
b757691334
Merge pull request #1493 from simophin/ses-1936-oom
[SES-1936] Fix memory leaks
2024-05-28 11:04:41 +09:30
Andrew
193381e193 Fix merge master to dev for release-1.18.3 2024-05-27 18:50:49 +09:30
fanchao
35335480ca Merge remote-tracking branch 'upstream/dev' into ses-1936-oom 2024-05-27 13:37:00 +10:00
fanchao
0d3a33e6c6 Fix delete message for everyone doesn't stop the audio playing 2024-05-27 13:25:56 +10:00
fanchao
2d7f23a2fb More work on animation views 2024-05-27 13:18:51 +10:00
fanchao
c0128b88de OOM feedback 2024-05-27 10:29:53 +10:00
Andrew
9d22e86a2f Merge master into dev 2024-05-24 12:03:52 +09:30
Andrew
f90cea8fe2 Do not fetch quotes recursively 2024-05-23 18:59:09 +09:30
fanchao
31f4de22cd More changes 2024-05-23 14:17:38 +10:00
fanchao
c1d82cc574 Naming 2024-05-23 13:49:38 +10:00
fanchao
90f0caebbd Tidy up 2024-05-23 13:48:06 +10:00
Andrew
8c9ff9840c Move next button up on new message fragment 2024-05-22 20:46:20 +09:30
alansley
f6fb4ab78c Attachment download job re-start preventer removed 2024-05-22 17:04:44 +10:00
fanchao
ee9a0a610c Logging 2024-05-22 11:13:26 +10:00
fanchao
c7c0519a20 Feedback 2024-05-22 10:54:56 +10:00
fanchao
27fcc66e7f Defensive check 2024-05-21 15:05:36 +10:00
fanchao
75e53c86b1 Fixes SES-1936 2024-05-21 11:44:08 +10:00
fanchao
2002b6f397 Fixes SES-1931 debouncer crash 2024-05-20 16:11:43 +10:00
Andrew
4904524af5 Fix excessive last sent calls 2024-05-20 13:58:13 +09:30
fanchao
10597f1f30 Import 2024-05-20 09:53:44 +10:00
fanchao
a8cc9e2409 Comments 2024-05-20 09:50:29 +10:00
fanchao
03893973b7 Feedback 2024-05-20 09:34:40 +10:00
Andrew
cf13caaee4
Bump canonicalVersionCode 2024-05-17 16:25:19 +09:30
Andrew
44f47662a7
Update version 1.18.3 2024-05-17 14:07:33 +09:30
Andrew
31cbaa9480
Merge pull request #1484 from AL-Session/SES1901_LastSentMsgANR
SES1901- Last sent msg ANR fix
2024-05-17 13:53:21 +09:30
Al Lansley
f6275362ea Removed 2 (two) accidentally left in commented lines 2024-05-17 13:48:10 +09:30
Al Lansley
c312c27dd3 Reduce frequency of calls to find last sent message 2024-05-17 13:48:10 +09:30
alansley
4bef09a3c1 Removed comment following PR feedback 2024-05-17 13:48:10 +09:30
alansley
9cf30dd67e Minor phrasing & indentation adjustments 2024-05-17 13:48:10 +09:30
alansley
b300b9a743 Addressed PR feedback 2024-05-17 13:48:10 +09:30
alansley
8c31c83fc5 Fixes #1483 2024-05-17 13:48:10 +09:30
fanchao
e49d017b08 Comments 2024-05-17 14:09:40 +10:00
fanchao
23872afeb4 Accidental change 2024-05-17 14:09:10 +10:00
fanchao
580bf9ebb3 Accidental change 2024-05-17 14:07:52 +10:00
fanchao
1377e192a1 Stop playing message if deleted 2024-05-17 14:02:34 +10:00
Andrew
a2a112e8b1
Prevent reloading sodium (#1485) 2024-05-17 12:54:57 +09:30
Andrew
f08c60633e Move newmessage 2024-05-16 23:40:18 +09:30
Andrew
272f223ca0 Merge branch 'on' into on-2 2024-05-15 11:34:17 +09:30
Andrew
8ef8107101 Merge branch 'dev' into on 2024-05-15 11:15:11 +09:30
Andrew
0512fd3500 Rename startPNModeActivity to startMessageNotificationsActivity 2024-05-15 11:08:45 +09:30
Andrew
0867fb7da0 Fix accessibility ids 2024-05-15 01:05:11 +09:30
Andrew
9f15039188 Add more info to unselect exception 2024-05-14 15:25:45 +09:30
Andrew
41dde12530 Clamp MediaPreview#getCursorPosition 2024-05-14 14:35:21 +09:30
Andrew
cee06bf7ee Remove invalid ViewPagerListener before updating pager data 2024-05-14 13:43:25 +09:30
Andrew
be0b800751 Move adapter to field 2024-05-14 13:36:12 +09:30
Andrew
b54efd6206 Clamp initial page of MediaPreview 2024-05-14 13:13:38 +09:30
Andrew
c32a5b6bba Handle QR errors 2024-05-10 01:08:53 +09:30
Andrew
1445d56d08 Extract strings 2024-05-09 02:07:50 +09:30
Andrew
9935b641e1 Fix glitch when canceling a search and reopening search 2024-05-09 00:55:10 +09:30
Andrew
a054fae758 Add strings and make qr scan call callback 2024-05-08 21:09:06 +09:30
Andrew
853c165949 Refresh contacts on open 2024-05-08 21:07:42 +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
afd240dcce Simplify HomeActivity 2024-05-07 10:58:41 +09:30
Andrew
0c0fa9ead3 Fix Invite Friend color 2024-05-06 15:41:55 +09:30
Andrew
b92c4065cc Fix approval not saved to user config 2024-05-06 15:41:07 +09:30
Andrew
7832f13562 Fix recover password button doesn't disappear 2024-05-05 00:09:22 +09:30
Andrew
cb02def41d Fix bottom sheet color 2024-05-05 00:07:28 +09:30
Andrew
75ea086032 Add InviteFriendFragment 2024-05-04 20:07:20 +09:30
Andrew
ddf0b027d7 Update NewConversationHomeFragment 2024-05-03 23:37:42 +09:30
Andrew
18a4bcdbd9 Update QrCodeActivity 2024-05-03 13:38:14 +09:30
AL-Session
fbc82d7831
SES1628 - Add git commit details to version info (#1459)
* Fixes #1458

* Addressed PR feedback
2024-05-02 12:55:24 +10:00
AL-Session
d8daf6175e
Fixes #1476 - Canononical version number needs to be bumped to provide new Google Play Store release
Co-authored-by: alansley <aclansley@gmail.com>
2024-05-01 20:08:36 +10:00
AL-Session
1354bccb59
Fixes #1474 (#1475)
Co-authored-by: alansley <aclansley@gmail.com>
2024-05-01 18:23:52 +10:00
Andrew
ff64a8bc13 Improve themes, styling and animations 2024-05-01 15:18:00 +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
0e7a981386
Merge pull request #1445 from alansley/SES1251_AppCrashOnNonAlphanumeric_REFIX
SES1251 - App crash on non alphanumeric RE-FIX
2024-04-24 14:14:47 +09:30
Andrew
e1652f8c6b
Merge pull request #1466 from AL-Session/SES1688_LastDeletedMessageFix
SES1688 - Last deleted message REFIX
2024-04-24 13:45:39 +09:30
Andrew
797d6eb658
Merge pull request #1329 from bemusementpark/fix-dialog-button
Fix dialog button style
2024-04-24 11:58:09 +09:30
Andrew
afa9af1803
Merge pull request #1465 from bemusementpark/ses-1733
[SES-1733] Fix group expiration update messages
2024-04-24 11:49:22 +09:30
Andrew
569d0c23a2
Merge pull request #1463 from bemusementpark/fix-multi-preview
[SES-1732] Fix multiple link previews
2024-04-24 11:48:04 +09:30
Andrew
577e86e31f Correctly don't start disappear timer on group timer updates 2024-04-23 13:03:11 +09:30
Andrew
c84f543069 Merge branch 'dev' into ses-1733 2024-04-22 11:10:01 +09:30
Andrew
4876523bf2 Don't start expiration for group expiration update messages 2024-04-22 10:00:46 +09:30
Al Lansley
a7e255091b Implemented PR feedback 2024-04-19 07:43:15 +10:00
Al Lansley
3b3935f9be Cleanup for PR review 2024-04-18 14:53:37 +10:00
Al Lansley
4ee5f36ad8 Merged dev & fixed merge conflicts 2024-04-18 14:46:24 +10:00
Al Lansley
2b46441977 Fixed conversation view closing + hopefully wrong status text displayed + deletion of contact on removal of last message in 1-on-1 convo 2024-04-18 14:29:55 +10:00
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 Lansley
13902607b2 Commit before converting SmsDatabase from Java to Kotlin 2024-04-18 08:51:04 +10:00
alansley
26fb268c76 WIP 2024-04-18 07:03:27 +10:00
Andrew
fa933c7795
Merge pull request #1455 from bemusementpark/ses-1729
[SES-1729] Disallow replies to open group invitations
2024-04-17 18:46:52 +09:30
Andrew
c942bbac25 Fix margins 2024-04-17 17:46:42 +09:30
AL-Session
57d1de165e
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>
2024-04-17 17:25:21 +10:00
Andrew
c28eba313a Merge branch 'dev' into fix-dialog-button 2024-04-17 15:59:43 +09:30
Andrew
3a36fe7fb1 Merge branch 'dev' into fix-dialog-button 2024-04-17 15:52:45 +09:30
Andrew
706e5766bb Fix multiple link previews 2024-04-17 15:35:41 +09:30
Andrew
200bf0d991 Disable swipe to reply on open group invites 2024-04-16 13:14:06 +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
9d0fe7581c Hide reply app bar menu item for open group invite 2024-04-16 12:47:34 +09:30
Andrew
bff1a12155
Merge pull request #1283 from bemusementpark/prefix-conversation
[SES-621] Add message sender to ConversationActivity
2024-04-16 11:37:57 +09:30
Andrew
c64868de18
Merge pull request #1457 from bemusementpark/fix-missing-icon-light-theme
[SES-1754] Fix message menu icons not visible in light theme
2024-04-16 11:28:32 +09:30
Andrew
034ab851ff
Merge pull request #1452 from bemusementpark/ses-1728
[SES-1728] Fix spacing when title is absent
2024-04-16 11:17:31 +09:30
Andrew
9d1762eab0 Fix message menu icons not visible in light theme 2024-04-13 00:27:45 +09:30
Andrew
8f69d57374 Fix multiple quote previews 2024-04-13 00:04:33 +09:30
Andrew
fe58ad4052 Ignore swipe reply to open group invitation 2024-04-12 15:32:04 +09:30
Andrew
2f116c1316 Remove reply from context menu for open group invitations 2024-04-12 15:22:54 +09:30
Andrew
22660fd49c Hide reply button in MessageDetails for group invitations 2024-04-12 14:12:08 +09:30
Andrew
6960d0c704 Fix spacing when title is absent 2024-04-12 11:37:45 +09:30
Andrew
c589bed249 Update settings 2024-04-11 14:20:32 +09:30
0x330a
1d9ac6ac10
build: update build number 2024-04-10 15:31:33 +10:00
Andrew
85c7a23235 Refactor 2024-04-10 12:38:02 +09:30
Andrew
d044a4090d [SES-1064] New Message Errors and Help Url 2024-04-10 12:34:56 +09:30
Andrew
1f04a0f0ff Cleanup 2024-04-10 12:21:23 +09:30
Andrew
35d176c71e Handle case where there are no messages 2024-04-09 12:36:11 +09:30
Andrew
c4309c9fba Merge branch 'dev' into prefix-conversation 2024-04-09 12:25:14 +09:30
Andrew
ee2b20080b Add Open URL accessibilityId 2024-04-09 10:30:41 +09:30
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
AL-Session
165ade7259
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
2024-04-08 15:31:05 +10:00
Al Lansley
0ab0ecbb55 Addressed PR feedback 2024-04-08 15:23:00 +10:00
Andrew
7d7d2b89bd Refactor temporary button text 2024-04-08 14:30:53 +09:30
Andrew
b8b98f436d AccessibilityIds 2024-04-08 13:57:24 +09:30
Al Lansley
dce0fd8413 Fixes #1448 2024-04-08 14:08:40 +10:00
Al Lansley
ad51746e84 Initial fix implemented 2024-04-08 13:53:18 +10:00
Andrew
b5af8de4f9 Show tada emoji empty screen on new account 2024-04-08 11:36:09 +09:30
Andrew
d65915af0e Update HomeActivity 2024-04-08 09:24:25 +09:30
Andrew
6b0a7cd369 Make copy to copied button transition temporary 2024-04-05 11:39:46 +10:30
Andrew
2cc83cd650 Updates for code review 2024-04-04 22:14:55 +10:30
Al Lansley
0146a2975f Cleanup 2024-04-04 13:36:14 +11:00
Al Lansley
f6d21534e0 Addressed PR feedback 2024-04-04 13:34:08 +11:00
AL-Session
34eedc0fdb
Tiny adjustment to center user name in Settings activity (#1446) 2024-04-04 12:04:39 +11:00
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
Al Lansley
48a95a1357 Merged dev & fixed conflicts 2024-04-04 11:35:02 +11:00
Al Lansley
04fb296787 Fixes #1346 - properly this time! 2024-04-04 11:27:47 +11:00
Al Lansley
d65705c845 Push before cleanup 2024-04-04 10:15:15 +11:00
Al Lansley
73f11c5a4f Merge branch 'dev' into SA1346_AppCrashOnNonAlphanumericFirstCharSearch 2024-04-04 07:37:35 +11:00
Andrew
3ae2dc5bc5 Merge branch 'dev' into on 2024-04-03 10:02:44 +10:30
Andrew
f89e4705d5 Update New Message Screen 2024-04-03 09:48:15 +10:30
Al Lansley
7a7ea8909d
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
2024-04-03 10:04:48 +11:00
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 Lansley
fef965bcb5
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: = <=>
2024-04-03 09:48:57 +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
Al Lansley
9ad5bd2374
Fixes #1347 (#1396)
Co-authored-by: AL-Session <160798022+AL-Session@users.noreply.github.com>
Co-authored-by: Al Lansley <al@oxen.io>
2024-04-03 09:14:11 +11:00
Andrew
8717430ee0
Merge pull request #1269 from bemusementpark/fix-pro
[SES-616] Fix profile pictures not updating
2024-04-02 11:18:06 +10:30
0x330a
f7537cace7
Merge remote-tracking branch 'upstream/dev' into display-own-name-in-quote 2024-03-28 16:13:22 +11:00
0x330a
ef157f9991
refactor: simplify comparison 2024-03-27 15:23:42 +11:00
Andrew
e25b90b229 Improve new convo error messages 2024-03-27 12:22:53 +10:30
Al Lansley
0febb0456e
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>
2024-03-27 07:42:05 +11:00
Al Lansley
54d6c025b1
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>
2024-03-27 07:26:56 +11:00
Al Lansley
9e62e1eab4
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>
2024-03-27 07:21:21 +11:00
Andrew
006c50e38d Refactor QR in RecoveryPasswordActivity 2024-03-26 14:44:16 +10:30
Andrew
84a399af06
Merge pull request #1302 from bemusementpark/remove-RecoveryPhraseRestoreActivity
Remove unused RecoveryPhraseRestoreActivity
2024-03-26 14:04:30 +10:30
Andrew
a26b0e52d4 Merge branch 'dev' into fix-dialog-button 2024-03-25 13:28:54 +10:30
Al Lansley
1f249a6d5a
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>
2024-03-25 11:37:43 +11:00
Al Lansley
8c2aaa06d8
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>
2024-03-25 11:28:03 +11:00
Andrew
13fce6e562 Merge branch 'dev' into prefix-conversation 2024-03-22 16:22:45 +10:30
Andrew
92c2d574ae Fix HomeActivityTests 2024-03-20 13:01:44 +10:30
Andrew
d083b19a12 Merge branch 'dev' into on 2024-03-16 14:27:18 +10:30
Andrew
a000ad3cbc Remove blank space 2024-03-16 00:26:00 +10:30
Andrew
0a10f94fd7 Use new strings 3 2024-03-15 23:52:09 +10:30
Andrew
8a1dcd4261 Fix caret color 2024-03-15 23:37:54 +10:30
Andrew
d1c2750de6 Use new strings 2 2024-03-15 12:37:59 +10:30
Andrew
a67b5f51b9 Use new strings 1 2024-03-15 12:37:49 +10:30
Andrew
4279c4b456 Merge branch 'dev' into on 2024-03-15 10:24:52 +10:30
Andrew
eb98ce961c Add text selection colors 2024-03-14 14:28:56 +10:30
Andrew
c72f37a9ac Refactor outlinedTextFieldColors 2024-03-14 13:16:50 +10:30
Andrew
01f6d75968 Add shield icon to Recovery Password Title 2024-03-14 12:56:16 +10:30
Andrew
98e336faee Remove up button on loading activity 2024-03-14 11:30:50 +10:30
Andrew
4cac496edf Extract strings 2024-03-13 13:42:05 +10:30
Andrew
ca0206409c Add QR errors 2024-03-13 13:14:14 +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
0dde7297b8 Fix multiple loading activities launched 2024-03-12 20:12:18 +10:30
Andrew
0e7f95dede Fix camera unbind 2024-03-12 20:11:46 +10:30
Andrew
3cba05e668 Fix NPE on null display name 2024-03-12 11:32:47 +10:30
0x330a
7bcf823740
build: update build number 2024-03-04 17:28:21 +11:00
0x330a
ecc8f6e26f
Merge remote-tracking branch 'upstream/dev' 2024-03-04 17:07:06 +11:00
Andrew
9ceaa97978 Fix tab theming 2024-03-04 16:23:57 +11:00
0x330a
e68290b572
fix: use the visible message view's context instead of the UserDetailsBottomSheet context which is null before showing (#1425) 2024-03-04 15:45:32 +11:00
Andrew
88f4f219f6 Cleanup 2024-03-01 20:23:39 +10:30
Andrew
673e53e4c7 Deduplicate QR success 2024-03-01 19:56:29 +10:30
Andrew
9e270c7ac0 Handle scan recovery phrase QR 2024-03-01 18:46:24 +10:30
Andrew
2555b34d8e Add QR code outline 2024-03-01 17:24:03 +10:30
Andrew
505d839924 Hide keyboard on open qr tab 2024-03-01 14:24:48 +10:30
Andrew
437d0de5e1 Add camera to QR tab 2024-03-01 11:47:54 +10:30
alansley
b21cdab0e4 Minor cleanup 2024-03-01 11:56:33 +11:00
Andrew
79cfde1924 Add QR camera permissions 2024-02-29 19:33:45 +10:30
Andrew
ab62d8f333 Add Recovery Phrase tab 2024-02-29 14:56:30 +10:30
Andrew
7a1b5749aa Fade in Copied on copy password 2024-02-28 22:25:51 +10:30
0x330a
f88eab7323
build: update build number 2024-02-28 18:26:28 +11:00
0x330a
a4c99799a2
build: update build version 2024-02-28 17:33:56 +11:00
Andrew
22460df15e Fix expiry not added to community invites 2024-02-28 13:34:32 +10:30
Andrew
c2ec2cb358 Add string resources to LandingScreen 2024-02-27 16:23:42 +10:30
Andrew
1c38fc000a Push empty convos to bottom and hide thread date when unknown 2024-02-27 10:36:13 +10:30
Andrew
1a81c7278a Set NTS to 14 days ago when created in updateUser 2024-02-26 17:46:45 +10:30
Andrew
d143d8a883 Fix old threads being set to 2 weeks ago 2024-02-26 17:27:46 +10:30
Andrew
19c3b639c3 Set thread to 14 days old when added from libSessionContacts 2024-02-26 14:54:54 +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
ef50d63410 Cleanup logs 2024-02-19 09:37:53 +10:30
Andrew
398b5bf7b4 Cleanup 2024-02-19 01:23:06 +10:30
Andrew
2e50dc08bb Cleanup MarkReadReceiver 2024-02-18 02:27:47 +10:30
Andrew
66dcae04f6 Cleanup Storage 2024-02-18 02:23:12 +10:30
Andrew
4ead21cf1a Cleanup SmsDatabase 2024-02-18 02:22:57 +10:30
Andrew
403058c5cf Cleanup VisibleMessageView 2024-02-18 02:22:28 +10:30
Andrew
88dfceed67 Cleanup ConversationViewModel 2024-02-18 02:22:02 +10:30
Andrew
c5c3365b18 Cleanup ConversationReactionOverlay 2024-02-18 02:21:39 +10:30
Andrew
d33de9cf6b Cleanup ConversationActivityV2 2024-02-18 02:21:08 +10:30
Andrew
835fa6882b Cleanup DisappearingMessagesActivity 2024-02-18 02:20:41 +10:30
Andrew
9fd244d86a Cleanup ConversationActionBarView 2024-02-17 23:34:05 +10:30
Andrew
74d96fa926 Fix disappearing messages setting lost on group member change 2024-02-17 17:32:14 +10:30
Andrew
8293c12bf2 Fix subtitle color 2024-02-13 12:16:37 +10:30
Andrew
128ae81998 Add 30 seconds to disappearing debug settings 2024-02-13 12:00:50 +10:30
Andrew
91807db8a9 Set delete in context menu to color destructive 2024-02-13 11:59:40 +10:30
Andrew
8e4266d9ee Fix mms messages delete previous timer messages 2024-02-09 16:41:56 +10:30
Andrew
610d717540 Fix sent status accessibility id 2024-02-09 14:23:03 +10:30
Andrew
64a2b4a61c Fix merge 2024-02-09 14:18:59 +10:30
Andrew
1176273c3a Fix accessibility id 2024-02-09 14:02:37 +10:30
Andrew
0ca55c8f42 Merge branch 'dev' into on 2024-02-09 13:41:36 +10:30
Andrew
e4999e3b84 Merge branch 'dev' into disappear-2 2024-02-09 13:12:31 +10:30
Andrew
637b7f8249 Fix expiry mode application to Message 2024-02-09 11:13:10 +10:30
Andrew
84e92e186b Fix context auto delete timer doesn't show if opened before successful send 2024-02-09 11:11:59 +10:30
Morgan Pretty
7e32f37258 Removed an unneeded import 2024-02-08 15:27:40 +11:00
Andrew
701e3cbf8b Close message context menu on delete 2024-02-08 13:14:22 +10:30
Andrew
779101ddc0 Close MessageDetailsActivity when message is deleted 2024-02-08 12:05:34 +10:30
Andrew
b56c3bd6c5 Add expiration subtitle to Delete option in message context menu 2024-02-07 16:51:00 +10:30
Morgan Pretty
bd03bf45c2 Initial CI setup test
Added code coverage report generation (for future CI stuff)
Fixed a flaky unit test
2024-02-07 13:19:57 +11:00
Andrew
b8aa46912a Add auto-delete subtitle to context menu 2024-02-06 20:10:07 +10:30
Andrew
ac37b2b9de Convert ConversationReactionOverlay to Kotlin 2024-02-06 19:43:01 +10:30
Andrew
3fa4122f77 Tweak call message style 2024-02-06 13:24:42 +10:30
Andrew
ace7e3b54c Don't delete old call messages on new call message 2024-02-06 10:44:17 +10:30
Andrew
f3bb2e5cfa Add new call control message UI with timer icon above 2024-02-06 09:17:19 +10:30
Andrew
c7ffa61c55 Simplify MarkReadReceiver 2024-02-06 09:15:59 +10:30
Andrew
730851d3d5 Remove erroneous scheduleDeletion in marked read 2024-02-05 09:35:55 +10:30
Andrew
a47bf230e2 Fix last seen channel being closed by consuming flow 2024-02-05 09:29:44 +10:30
Andrew
a326c47e56 Don't start DaR timer view until it has actually started 2024-02-03 10:12:46 +10:30
Andrew
246e8bf2a2 Fix messages not marked as read onScroll when message count is unchanged 2024-02-02 22:32: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
848dbd2eb0 Start expiration at end of handling each message type treating call and extraction as DaR 2024-01-23 09:09:16 +10:00
Andrew
e2e5a36f51 Merge remote-tracking branch 'refs/remotes/origin/disappear-2' into disappear-2 2024-01-19 16:05:27 +10:00
Andrew
a845d2f17a Add Set button contentDescription 2024-01-19 15:58:14 +10:00
Al Lansley
343820579c
SA1390 - Session ID regeneration on focus loss (#1392)
* Fixes #1390

* Clean up prior to PR

* Removed unused logging imports introduced during debugging

* Added mechanism to store the session ID seed temporarily during account creation

* Implemented keeping session ID on lose/regain focus via Hariss' better way using the savedInstanceState Bundle

* Removed now unused imports
2024-01-19 15:23:47 +11:00
0x330a
106305f118
fix: outdated banner showing and updating on messages properly 2024-01-18 13:46:46 +11:00
alansley
cab1ffec1e Put back some whitespace 2024-01-17 13:01:55 +11:00
alansley
42e58c477b Removed unused logging imports 2024-01-17 13:00:30 +11:00
alansley
09e48fdc5c Fixes #1346 2024-01-17 12:51:11 +11:00
alansley
cfe2dbca7b Working fix push before cleanup 2024-01-17 12:13:27 +11:00
alansley
88ceffeee2 Investigation in progress 2024-01-17 08:47:27 +11:00
Andrew
1ada072884 Copy expiryMode from proto for all Messages 2024-01-17 00:43:37 +10:30
Andrew
c8377b0e30 Fix follow setting visible in groups 2024-01-16 17:57:52 +10:30
Al Lansley
2fff9eceb7
Cannot save generic files (#1391)
* Fixes #429

* Further experimentation regarding potential race condition - still not resolved

* Changed spinner mechanism away from RotateAnimation which fixes race-condition

* Removed leftover commented code

* Cleanup of unused imports

* Addressed PR feedback

* Adjusted 'visible' to use ktx
2024-01-15 16:46:48 +11:00
Al Lansley
c366574521
Allow links and replies in input bar
Fixes oxen-io/session-android#704 (#1387)
2024-01-15 16:07:36 +11:00
Andrew
1339c60d06 Fix received messages deleted instantly 2024-01-12 13:51:37 +10:30
Andrew
7b26de5bd6 Fix disappear after read 2024-01-11 12:34:41 +10:30
Andrew
6b1628df6b Use expiration in message instead of config 2024-01-11 12:11:43 +10:30
Andrew
5a047daefc Remove disappearing messages scheduling from VisibleMessageView 2024-01-11 10:34:40 +10:30
Andrew
f921fc4933 Remove unused markExpireStarted overload 2023-12-18 11:19:59 +10:30
Andrew
a3b6f685c0 Refactor follow setting dialog 2023-12-18 10:44: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
a57b7ef121 build: update version code 2023-12-11 15:22:13 +10:30
0x330a
9a83daa53f fix: remove the two unsupported servers 2023-12-08 11:44:28 +11:00
andrew
cf0dbffafd Add follow setting button 2023-12-07 17:50:30 +10:30
andrew
c60b6d9ba2 Add follow setting button 2023-12-06 12:31:59 +10:30
andrew
71b2f1ed6a Hold onto last incoming and outgoing expiration update for 1 on 1 convos 2023-12-06 03:32:14 +10:30
andrew
a4d3fa8897 Convert ExpiringMessageManager to Kotlin 2023-11-30 13:42:11 +10:30
andrew
eecea12c17 Add set button contentDescription 2023-11-30 09:10:06 +10:30
andrew
4411b584fa Hide duplicate divider 2023-11-30 00:47:57 +10:30
andrew
62ef9d3ed4 Add hide password dialogs 2023-11-30 00:45:53 +10:30
andrew
a256a04154 Fix QR code 2023-11-29 11:57:03 +10:30
andrew
7bd43b1b3c Fix control messages 2023-11-28 12:47:27 +10:30
wafflesvsfrankie
7fe40ea9f1
Content descriptions (#1358)
* Adding in Content Description for automated testing including: Community input (URL) box, changes `Configuration message` to `Control message` and also `Message Body` to `Message body`Created checkout page along with checkoutItems and checkout cart functionality

* Forgot the button at the end
2023-11-20 15:32:57 +11:00
andrew
8cc26b8fb6 Fix contentDescriptions 2023-11-20 11:10:09 +10:30
andrew
0cc54b7b40 Fix QR colors 2023-11-17 01:10:27 +10:30
andrew
9ac3ec22c0 Add QR to recovery password screen 2023-11-17 00:20:36 +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
andrew
4ed5b57abd Fix read/write legacy 2023-11-15 12:03:23 +10:30
andrew
725ad43b1d Fix timer icon flashes expired 2023-11-15 12:02:15 +10:30
andrew
fc9ea46ed8 Merge branch 'disappear-2' of github.com:bemusementpark/session-android into disappear-2 2023-11-13 23:41:49 +10:30
andrew
d3911fbedd Fix legacy options 2023-11-13 23:41:41 +10:30
0x330a
565c92f45e
fix: clear on updated legacy message from existing legacy thread recipient 2023-11-13 10:49:43 +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
0x330a
d12bce54bd feat: add basic last sent legacy message DB migration and creation for banner 2023-11-13 08:38:33 +11:00
andrew
806cb216ae Fix disappearing off icon 2023-11-10 13:26:30 +10:30
andrew
b0447cf342 Fix gap under messages 2023-11-06 12:23:09 +10:30
andrew
1c8612c392 Migrate db to autoincrement id for sms and mms 2023-11-06 11:09:32 +10:30
andrew
555209bec1 Fix animation 2023-11-01 14:13:10 +10:30
andrew
1b5b7cfccc Use animated timer in control message 2023-10-31 14:18:54 +10:30
andrew
e3011c52c2 Fix padding and ordering 2023-10-31 12:32:42 +10:30
andrew
a108e3b9c1 Show timer in status 2023-10-31 11:55:10 +10:30
andrew
7b533f3676 Fix timer color 2023-10-30 11:40:17 +10:30
Rugved Darwhekar
c647bab35e Fixed video call auto rotate, when auto rotate is disabled 2023-10-29 15:58:54 -07:00
andrew
61c51ecf64 Remove timer from message view 2023-10-27 16:24:56 +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
ea0bcbe7c5 Populate RecoveryPasswordActivity 2023-10-20 01:45:33 +10:30
andrew
ef045b7e2b Delete seed dialog 2023-10-19 23:03:21 +10:30
andrew
94f3fc5a5f Rename and empty RecoveryPasswordActivity 2023-10-19 22:02:37 +10:30
andrew
8399771d5d Add contentDescription to settingsPager 2023-10-19 14:38:42 +10:30
andrew
b2f92bc166 Add contentDescriptions to radio buttons 2023-10-19 13:32:34 +10:30
andrew
864942026c Fix group disappearing messages not opening 2023-10-19 13:21:06 +10:30
andrew
5b6f29251c Remove recovery strings 2023-10-19 10:43:35 +10:30
andrew
8b1751d40d Update recovery password banner 2023-10-19 10:43:09 +10:30
andrew
4dd451e77f Merge branch 'dev' into on 2023-10-18 12:59:10 +10:30
andrew
28d92fd547 Update MessageNotificationsActivity 2023-10-17 18:18:53 +10:30
andrew
88cfe41893 Add terms and privacy policy to LandingActivity 2023-10-17 12:04:32 +10:30
andrew
fc3063140e Rebuild LandingActivity 2023-10-17 00:56:55 +10:30
0x330a
2d0c4399c4
refactor: use just the storage setExpirationConfiguration function 2023-10-16 14:50:58 +11:00
andrew
019a86482a Fix timestamps 2023-10-16 13:34:10 +10:30
andrew
eb691eded9 Add alternate strings for load failed in PickDisplayNameActivity 2023-10-16 11:35:14 +10:30
andrew
8145a7d772 Merge branch 'disappear-2' of github.com:bemusementpark/session-android into disappear-2 2023-10-16 11:16:12 +10:30
andrew
73538a47aa Remove log 2023-10-16 11:15:56 +10:30
0x330a
acb1181db0
feat: add more testing functionality for the expected current / updated expiry configuration upon merging libsession updates 2023-10-16 10:48:06 +11:00
andrew
c2088efe43 Merge branch 'dev' into on 2023-10-16 10:11:39 +10:30
0x330a
f6a736bd13
Merge remote-tracking branch 'origin/master' into disappear-2 2023-10-16 09:57:49 +11:00
aaronkerckhoff
e595cfb504 Improve check if author is own user when quoting messages 2023-10-15 14:19:41 +02:00
andrew
008bbd8c38 Optimise DAR message expiry update & lookup 2023-10-15 01:11:00 +10:30
0x330a
9d02eb33c7 build: update version code 2023-10-13 16:48:47 +11:00
andrew
793fe63260 Merge branch 'dev' into disappear-2 2023-10-13 15:51:43 +10:30
andrew
88e7ef1403 Fix db typo 2023-10-13 15:47:11 +10:30
andrew
d37e7240e9 Call expire after read DaR messages 2023-10-13 15:45:25 +10:30
0x330a
b6bb586509 feat: add foreground types to key caching service and call service 2023-10-13 14:32:04 +11:00
andrew
140b3ed138 Reinstate key generation on continue pick name 2023-10-11 17:33:08 +10:30
0x330a
82cbf830ae
fix: need quotes on job type key 2023-10-11 17:52:04 +11:00
0x330a
c1102a2a50
build: update build number 2023-10-11 17:37:55 +11:00
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
6f22eb659b
fix: use the context compat register receiver to fix Android 14 crash (#1338) 2023-10-11 17:12:28 +11:00
andrew
b7ffc9afc9 Merge branch 'dev' into on 2023-10-11 11:17:49 +10:30
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
77f951cadf Use separate tables for mms and sms in LokiMessageDatabase 2023-10-11 01:53:08 +10:30
andrew
c86b229200 Add mms and sms table to loki db 2023-10-11 01:52:54 +10:30
andrew
3d6c7dbae4 Simplify MarkReadReceiver#process 2023-10-10 09:20:37 +10:30
andrew
17f41d76b8 Improve ui vm separation 2023-10-09 16:33:54 +10:30
andrew
b211c8bffb Rename ExpirationSettings to DisappearingMessages 2023-10-09 12:44:48 +10:30
0x330a
cb1b5b0f78
build: update version name and code 2023-10-09 10:12:51 +11:00
andrew
5986196465 Accessibility 2023-10-06 15:55:26 +10:30
andrew
892e4b75ec Merge branch 'dev' into disappear-2 2023-10-06 12:01:23 +10:30
andrew
82a94eed74 Fix control message accessibility id 2023-10-06 11:53:57 +10:30
andrew
3566260c6c Remove sarrays__off 2023-10-05 21:44:56 +10:30
andrew
149c81722c Fix cards visibility pre API 28 2023-10-05 21:23:45 +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
aaronkerckhoff
0f04929bf9 Fix bug displaying user ID when quoting own message 2023-09-30 01:32:39 +02:00
0x330a
443ddfa370
Merge remote-tracking branch 'upstream/master' into dev 2023-09-28 14:01:58 +10:00
andrew
76166b39a9 Update DisplayNameActivity 2023-09-27 09:24:33 +09:30
andrew
1068c167a3 Delete RegisterActivity 2023-09-25 21:39:46 +09:30
andrew
9c10209533 Update empty screen 2023-09-25 14:01:24 +09:30
andrew
d159a0bcab Add LoadingActivity 2023-09-25 09:34:07 +09:30
andrew
0bc7b4dc4c Remove unused RecoveryPhraseRestoreActivity 2023-09-22 13:21:19 +09:30
Andrew
e124d442ef
Ignore unknown fields in push V2 json 2023-09-22 10:02:39 +09:30
andrew
1f6542eff3 Fix dialog button style 2023-09-22 00:16:10 +09:30
Andrew
698b853716
Make playDebug the default variant 2023-09-21 20:52:57 +09:30
andrew
0cd0ac9c75 Ignore unknown fields in push V2 json 2023-09-21 19:44:54 +09:30
andrew
ec8b89b8a4 Minor test refactor 2023-09-21 01:13:34 +09:30
andrew
9968b5d6ea Fix group admin test 2023-09-21 00:37:12 +09:30
andrew
c492a74014 Hide set button when disabled 2023-09-21 00:27:10 +09:30
andrew
7738b19760 Add non admin group test 2023-09-20 23:29:35 +09:30
andrew
cd0022e0ee Add old config tests 2023-09-20 14:14:58 +09:30
andrew
668bf46655 Fix tests 2023-09-20 11:31:51 +09:30
andrew
e700641da7 Refactor test 2023-09-20 09:19:11 +09:30
andrew
3bf87ff2ea Add 1 day after read 2023-09-20 00:52:44 +09:30
andrew
987bd8961b Add off test 2023-09-20 00:47:19 +09:30
andrew
92cae9adde Add 1 day after read test 2023-09-20 00:41:34 +09:30
andrew
a7111b0d49 Simplify VM 2023-09-19 13:45:59 +09:30
andrew
885df1e22b Refactor 2023-09-18 01:49:41 +09:30
andrew
5ce100a4ec Select currently persisted time when user toggles back to currently persisted type 2023-09-14 19:34:34 +09:30
andrew
349247e7f3 Hide disappearing header for note-to-self 2023-09-14 19:21:39 +09:30
Andrew
984c3763b6
Remove unused longmessage package 2023-09-07 17:09:00 +09:30
Andrew
833b30fc14
Increase activity_home_outdated_client_config text size to 11sp 2023-09-07 17:05:28 +09:30
andrew
0c9d050ef6 Fix nts options and add 10 second debug time 2023-09-07 13:48:16 +09:30
andrew
96afa8d23f Fix expiry timer millis conversion 2023-09-05 14:07:41 +09:30
andrew
303aacb2e3 Fix post notifications permission request 2023-09-04 14:49:28 +09:30
andrew
bb36b9361a Simplify list 2023-09-04 14:03:40 +09:30
andrew
2d89dda2dd Fix debug time ordering 2023-09-04 12:18:41 +09:30
andrew
f1d3518f1c Fix groups 2023-09-04 11:22:18 +09:30
andrew
63713aeb88 Show debug time in 1-1 conversations 2023-09-02 21:59:34 +09:30
andrew
ba0ca7d260 Remove Storage#setExpirationTimer 2023-09-02 19:53:43 +09:30
andrew
cdb7a5f5d6 Fix time option not selecting when type options are off 2023-09-02 10:03:46 +09:30
andrew
519bf38ee0 Merge branch 'dev' into disappear-2 2023-09-01 17:21:19 +09:30
hjubb
99e5ed3db7 Merge remote-tracking branch 'upstream/dev' 2023-09-01 13:50:33 +10:00
0x330a
29275cef51
build: update build number (#1310) 2023-09-01 13:42:23 +10:00
andrew
371d06d6b5 Simplify 2023-09-01 10:57:50 +09:30
andrew
8b320bb0ce Fix onSetClick 2023-09-01 10:35:21 +09:30
andrew
ee6ce84116 Fix TitledRadioButton ripple downstate 2023-09-01 08:31:08 +09:30
andrew
ef24fb0fd1 Fix test 2023-08-31 17:51:14 +09:30
andrew
58c4467749 Implement default times 2023-08-31 12:57:28 +09:30
andrew
4e424384be Improve routing 2023-08-31 12:50:10 +09:30
andrew
88223be957 Cleanup 2023-08-31 12:45:35 +09:30
andrew
bc83c3da52 Fix outline button colors 2023-08-31 12:35:15 +09:30
andrew
e95c842051 Add preview for all states 2023-08-31 12:09:06 +09:30
andrew
0b11e182ff Merge branch 'dev' into disappear-2 2023-08-30 10:59:00 +09:30
andrew
0e0cbf112b Use separate keys for huawei shared prefs 2023-08-28 11:18:51 +09:30
andrew
bfd2370730 Add disabled group options 2023-08-28 09:37:19 +09:30
0x330a
2466d9b4c0
[SES-1002] Synced blind requests (#1303)
* feat: update config to use blinded-msg-requests pr

* feat: add block community message requests bool to protos

* feat: add everything needed for recipientDB to have blocked community requests potentially

* feat: add db migrations

* feat: add sending community block flags and preference options

* feat: add parsing block request flag

* fix: open group message requests were broken anyway

* fix: delete all encoded open group inbox ID bs, fix privacy settings using user config as privacy store

* feat: initial creation sets flag, rename to match libsession implementation value

* fix: recipient blinded checks from open group message for blocking community requests on blinded ID version of recipient, use correct (inverted) values from before for checking polling and empty states etc

* fix: pr comments for view model factory context ref, simplified user config object check for category in PrivacySettingsPreferenceFragment

* fix: pr comments

* fix: migrate some dependencies and functionality out of VM into repository to remove content resolver and context dependecy so tests pass again

* refactor: better naming for hidesInputBar and add more tests for expected recipient view states

* fix: use contact information as opposed to active conversations

* fix: PR comments
2023-08-28 09:51:48 +10:00
andrew
9f6dd728d5 Cleanup 2023-08-28 01:50:20 +09:30
andrew
c22860665e Add event flow 2023-08-27 23:20:14 +09:30
andrew
b65a383ac5 Reinstate group footer 2023-08-27 18:44:29 +09:30
andrew
97f28fd2e5 Respect option selected in note to self 2023-08-27 01:24:41 +09:30
andrew
6602f1bd14 Show correct options for note to self 2023-08-27 01:14:39 +09:30
andrew
cc5cd51ac1 Fix type radio button 2023-08-27 01:03:36 +09:30
andrew
7a705642a2 Fix fading edge 2023-08-27 00:12:20 +09:30
andrew
71b2544c31 Use compose 2023-08-25 12:20:34 +09:30
andrew
5142c45643 Move recipient into state 2023-08-24 01:00:31 +09:30
andrew
0ed9731622 Make ExpiryMode non-null in config 2023-08-24 00:32:24 +09:30
andrew
58b5815a09 Simplify 2023-08-22 14:12:11 +09:30
andrew
621c74c1d6 Improve animations 2023-08-22 10:58:06 +09:30
andrew
6818be21a1 Remove trailing divider 2023-08-21 20:58:51 +09:30
andrew
d9c48ec84f Move getDeleteOptions() to ViewModel 2023-08-21 20:00:39 +09:30
andrew
78eef350b5 Add radioOption DSL 2023-08-21 19:45:50 +09:30
andrew
9123dd90a4 Utilise typealias for RadioOptions 2023-08-21 18:35:37 +09:30
andrew
60f396a158 Fix ExpSettingsViewModel 2023-08-21 12:11:27 +09:30
andrew
ae9d3810e1 Fix website flavor TokenFetcher 2023-08-17 14:02:22 +09:30
andrew
550955f530 Add huawei strings 2023-08-16 20:54:07 +09:30
andrew
62cd0f68f0 Improve huawei guarding 2023-08-16 19:23:13 +09:30
0x330a
d6dd7a82f1 fix: error with legacy type and set type check 2023-08-16 16:25:25 +10:00
andrew
d308f381d9 Disable fcm preference while register request is in flight 2023-08-16 13:27:28 +09:30
andrew
0aa5dc7969 Convert NotificationPreferenceFragment to Kotlin 2023-08-16 13:25:45 +09:30
andrew
7c8882e1f3 Fix project reference in task 2023-08-15 18:42:49 +09:30
andrew
4c8f38df72 Require command line arg to include huawei dependencies 2023-08-15 13:51:21 +09:30
andrew
b987ba719b Remove unused longmessage package 2023-08-15 10:29:20 +09:30
andrew
1937fca681 Remove unused RecoveryPhraseRestoreActivity 2023-08-15 00:10:37 +09:30
andrew
ed7ce36402 Cleanup gradle 2023-08-14 10:31:22 +09:30
andrew
1d9fb13809 Move plugin to huawei flavor 2023-08-11 19:29:31 +09:30
andrew
9899b37f43 Move huawei manifest metadata to huawei flavor 2023-08-11 17:45:56 +09:30
andrew
77100231d2 Fix logs 2023-08-11 17:37:35 +09:30
andrew
16177d5cb1 Fix logs 2023-08-11 17:36:55 +09:30
0x330a
9faa400a5b
refactor: use generic option adapters, fix compile issues 2023-08-10 17:16:46 +10:00
andrew
9813b526f0 Merge branch 'dev' into huawei-3 2023-08-10 13:18:59 +09:30
Andrew
c9417b2fec
Fix Dialog#button default (#1299) 2023-08-10 13:17:28 +09:30
andrew
309293df63 Improve logs in SingleRecipientNotificationBuilder 2023-08-10 10:36:52 +09:30
andrew
60ea5ba3a7 Hide send button when message contains only whitespace 2023-08-09 20:02:51 +09:30
0x330a
317ecf6cee refactor: making radio options and adapter and list items generic 2023-08-09 16:36:19 +10:00
Andrew
34fc6ee6cb
Remove contactshare package (#1288) 2023-08-09 14:12:07 +09:30
andrew
e60c05cee0 Fix Huawei message parsing 2023-08-09 12:18:22 +09:30
0x330a
9dc8f18b86 fix: prevent message request response from being deleted by any config 2023-08-09 10:59:57 +10:00
andrew
5a5b2f593f Refactor to accept Huawei token from getToken() and/or onNewToken() 2023-08-09 10:08:42 +09:30
Andrew
2f42fe9d0d
Remove unused classes (#1289) 2023-08-08 14:40:36 +09:30
andrew
c8dcfbf32c Merge branch 'dev' into huawei-3 2023-08-07 23:09:54 +09:30
Andrew
9cf99480d6
Fix shareLogs() canceled by early dismiss() (#1295) 2023-08-07 23:01:03 +09:30
andrew
50fd3292c8 Refactor snippet formatting 2023-08-07 10:46:38 +09:30
andrew
f70aa9155b Remove problematic getLastMessage() 2023-08-07 10:26:20 +09:30
andrew
d6380c5e63 Fix website flavor 2023-08-07 09:50:51 +09:30
andrew
24f7bb2b45 Move files 2023-08-06 22:39:49 +09:30
andrew
bcf925c132 Cleanup 2023-08-06 22:22:39 +09:30
0x330a
2e3d50364c fix: issue for overwriting local config with an outdated user config merge 2023-08-04 16:11:18 +10:00
andrew
a27f81db30 Fix Huawei push notifications 2023-08-04 13:36:09 +09:30
0x330a
8db92cc55c
feat: add user config integrated into config sync 2023-08-03 17:37:21 +10:00
andrew
cc6f880665 ... 2023-08-03 14:14:55 +09:30
0x330a
06c0ab3080 refactor: let frontend use the normal types and enabled options properly set 2023-08-03 08:54:39 +10:00
andrew
41d24ef2c3 ... 2023-08-02 14:55:31 +09:30
andrew
7ee9b14247 Fix PNModeActivity DI 2023-08-02 10:41:50 +09:30
Andrew
cd1a52399e Increase activity_home_outdated_client_config text size to 11sp 2023-07-31 22:18:34 +09:30
Andrew
b487d5aa64 Hide sender prefix for control messages 2023-07-31 19:48:45 +09:30
Andrew
dd345cbf07 Hide sender prefix for note to self 2023-07-31 19:40:20 +09:30
0x330a
bcb2071f44
fix: compile issues and dependencies resolved to use shared configs throughout apps 2023-07-31 17:19:38 +10:00
andrew
916f705c50 Prefix message with name in HomeActivity 2023-07-31 14:44:43 +09:30
0x330a
19083e2ce7 refactor: use the shared config expiry mode types instead of custom protobufs so we can remove a variable and simplify checks across two variables 2023-07-28 11:39:12 +10:00
0x330a
7f4db64a5a
refactor: refactor ExpirationConfigurationDatabase to return a specific db config after removing config values that are in shared lib 2023-07-27 17:40:59 +10:00
andrew
d1e22ca369 Fix 2023-07-27 13:53:33 +09:30
0x330a
87d76b21da
refactor: moving radio indexes out of expiration configuration 2023-07-27 14:22:10 +10:00
andrew
7be1f092f9 More Huawei stuff 2023-07-26 22:09:24 +09:30
0x330a
0e30d14b96
refactor: start looking at how to incorporate the user config changes to the expiry message update times and where to read values from 2023-07-26 17:16:09 +10:00
andrew
4738c9b4f9 Fix v2 2023-07-26 14:48:15 +09:30
andrew
d3ea4e2e30 Fix 2023-07-26 14:36:06 +09:30
0x330a
2acb7b5169 refactor: remove unused parameter 2023-07-26 11:57:26 +10:00
0x330a
41c05b1e67 fix: compile issues and deprecate java for kotlin lint 2023-07-26 11:34:00 +10:00
Andrew
55216875ac Connect Huawei push notifications 2023-07-26 10:48:20 +09:30
0x330a
7f7971e47f Merge remote-tracking branch 'upstream/dev' into disappearing-messages
# Conflicts:
#	app/src/main/java/org/thoughtcrime/securesms/conversation/v2/ConversationActivityV2.kt
#	app/src/main/res/layout/activity_conversation_v2_action_bar.xml
2023-07-26 09:46:57 +10:00
andrew
34990b13d3 ... 2023-07-25 14:49:41 +09:30
0x330a
36df2b37df Merge remote-tracking branch 'origin/disappearing-messages' into disappearing-messages
# Conflicts:
#	app/src/main/java/org/thoughtcrime/securesms/conversation/v2/ConversationActivityV2.kt
#	app/src/main/java/org/thoughtcrime/securesms/database/helpers/SQLCipherOpenHelper.java
#	libsession/src/main/java/org/session/libsession/messaging/messages/control/MessageRequestResponse.kt
#	libsession/src/main/java/org/session/libsession/messaging/sending_receiving/MessageSender.kt
#	libsession/src/main/java/org/session/libsession/messaging/utilities/UpdateMessageBuilder.kt
#	libsignal/src/main/java/org/session/libsignal/protos/SignalServiceProtos.java
2023-07-25 13:14:29 +10:00
andrew
01e9d15872 Add Huawei flavor 2023-07-25 11:38:06 +09:30
andrew
58cda9ba4a Fix website 2023-07-25 10:32:41 +09:30
andrew
002793baed Merge branch 'dev' into add-unregister 2023-07-24 09:52:11 +09:30
andrew
41cb4656d8 M:erge branch 'dev' into fix-pro 2023-07-21 15:50:59 +09:30
andrew
fbb2172739 Fix buttons 2023-07-21 11:50:42 +09:30
andrew
d0415c5bf1 Merge branch 'dev' into comp 2023-07-21 10:42:13 +09:30
andrew
b25f0e6d27 Move voice below quote in message view 2023-07-20 13:22:52 +09:30
andrew
47d1c657f3 Enable reply with attachment 2023-07-20 13:21:58 +09:30
andrew
fc8a92998c Fix message clipping 2023-07-19 15:04:30 +09:30
0x330a
68248db83c fix: compile errors to build 2023-07-19 10:28:52 +10:00
0x330a
74ee433eec fix: more merge conflict compile issues 2023-07-19 00:02:43 +10:00
andrew
452db6dfa3 Make reply safer 2023-07-18 13:36:08 +09:30
andrew
9a84f6c67b Merge branch 'dev' into comp 2023-07-18 12:04:56 +09:30
0x330a
07e1d80654 Merge remote-tracking branch 'upstream/dev' into disappearing-messages
# Conflicts:
#	app/src/main/java/org/thoughtcrime/securesms/conversation/v2/ConversationActivityV2.kt
#	app/src/main/java/org/thoughtcrime/securesms/conversation/v2/menus/ConversationMenuHelper.kt
#	app/src/main/java/org/thoughtcrime/securesms/database/MmsDatabase.kt
#	app/src/main/java/org/thoughtcrime/securesms/database/RecipientDatabase.java
#	app/src/main/java/org/thoughtcrime/securesms/database/SmsDatabase.java
#	app/src/main/java/org/thoughtcrime/securesms/database/Storage.kt
#	app/src/main/java/org/thoughtcrime/securesms/database/helpers/SQLCipherOpenHelper.java
#	app/src/main/java/org/thoughtcrime/securesms/dependencies/DatabaseComponent.kt
#	app/src/main/java/org/thoughtcrime/securesms/dependencies/DatabaseModule.kt
#	app/src/main/java/org/thoughtcrime/securesms/preferences/ClearAllDataDialog.kt
#	app/src/main/java/org/thoughtcrime/securesms/repository/ConversationRepository.kt
#	app/src/main/java/org/thoughtcrime/securesms/service/ExpiringMessageManager.java
#	app/src/main/res/layout/activity_conversation_v2.xml
#	libsession/src/main/java/org/session/libsession/database/StorageProtocol.kt
#	libsession/src/main/java/org/session/libsession/messaging/jobs/BatchMessageReceiveJob.kt
#	libsession/src/main/java/org/session/libsession/messaging/messages/Message.kt
#	libsession/src/main/java/org/session/libsession/messaging/sending_receiving/MessageReceiver.kt
#	libsession/src/main/java/org/session/libsession/messaging/sending_receiving/MessageSender.kt
#	libsession/src/main/java/org/session/libsession/messaging/sending_receiving/MessageSenderClosedGroupHandler.kt
#	libsession/src/main/java/org/session/libsession/messaging/sending_receiving/ReceivedMessageHandler.kt
#	libsession/src/main/java/org/session/libsession/snode/SnodeAPI.kt
#	libsignal/protobuf/SignalService.proto
#	libsignal/src/main/java/org/session/libsignal/utilities/Snode.kt
2023-07-18 11:39:03 +10:00
hjubb
1bb3939930 Merge branch 'dev' 2023-07-14 18:47:39 +10:00
hjubb
e7608763a0 fix: tests pass with forcing config 2023-07-14 18:47:10 +10:00
hjubb
9523953bd9 build: update build number 2023-07-14 18:29:47 +10:00
0x330a
ac18f1cbfe
Integrate shared libsession-util library (#1096)
* feat: add some config db basics and DI for it, make the user profile optional, start looking at integrate building from initial dump

* update: get latest util library submodule update

* refactor: fix compile for refactored API

* refactor: naming consistent with library

* feat: add in config storage and injection to common places, managing lifecycle of native instances

* refactor: config database changes, new protos, adding in support for config base namespace queries

* refactor: config query and store use the same format as other platforms

* feat: add batch snode calls and try to poll from all the config namespaces

* fix: add optional namespace in signature and params

* feat: add raw requests for modifying expiry and getting expiries

* feat: add some base config migration logic, start implementing wrappers for conversation and expiry types

* chore: update libsession base

* feat: start integrating conversation wrapper functions

* feat: add basic conversation info volatile types and implementations, start working on tests

* feat: more common library wrapper implementation and test

* fix: tests and compile issues

* fix: fix tests, don't use iterables

* feat: add all iterators and tests

* feat: add in more config factory for volatile

* feat: update request responses and their appropriate processing

* feat: add storage with hashes and some basic profile update logic in config factory probably move that somewhere else

* feat: adding config sync functionality, refactoring jobs to execute in suspend context to do some nice coroutine execution

* refactor: moving some properties around so we have access in libsession

* feat: expand on the config sync job, finish basic implementation to test against

* feat: add forced config sync

* feat: syncs the user profile stuff for now, and errors back to placeholder instead of unknown recipient

* feat: add basic message read logic for synchronizing last reads, need to modify the query to use the last seen instead of the unread count in a subquery possibly for thread display record

* feat: add broken unreads everywhere

* fix: unreads work now for incoming messages, need to sync conv volatile properly still

* feat: batching poll responses properly and handling groups properly

* fix: replace the mark read receiver (from notifications) to use the new set last seen mark read logic

* feat: update to the group list branch

* fix: compile errors from updating library to use latest branch, now requires cmake 3.22.1

* fix: fix the contact tests

* fix: getters weren't getters properly in the config factory, fixed new onboarding from configs

* feat: add the last seen

* feat: start adding user groups wrapper objects

* refactor: add more else branches for unimplemented types

* feat: buffer the last read when in conversation

* feat: add basic contact logic for setting local contact state. Need to implement handling properly

* refactor: trying to just include blocked status for now in updating contacts

* fix: add some more contact syncing: nicknames, approved statuses, blocked statuses

* feat: start implementing hashes in shared lib and refactoring

* feat: start to implement group list info classes and wrappers and refactor to use library based hashes

* feat: incorporate hashes from library, more wrapper for user groups and serialization from c++

* feat: adding more serialization changes for community base info and user groups LGC

* feat: adding more serialize deserialize to legacy closed groups

* feat: finish serial/deserial helper

* feat: just implement deserialize community info

* refactor: refactor tests and wrappers to use less pointers, finish implementing user groups API

* feat: finish latest wrappers fix tests and continue building default generation functions. refactor defaults to be used if no stored data blob in DB

* feat: more usergroup functionality, storage functionality for checking pinned status, adding pinned status for NTS/contacts, move community info parse full url to base community, add StorageProtocol logic for group info

* feat: adding user groups to the list of user configs, refactorign some of the config factory to fetch the user configs easier. Add handling for polling user group namespace

* feat: implement the default user config list

* feat: add user group config handling

* chore: extra missed existing group

* refactor: use existing lookup for objects in wrappers so they don't overwrite missing values

* feat: add contacts expiry serialization/deserialization, more LGC, timestamps to add closed group encryption info (for latest tracking)

* refactor: change how expiration timer works for contacts, set the expiration timer for those conversations in handling contact configs

* feat: add expiration updates via config for contacts as well

* feat: add almost all group editing cases, need to hook into the thread deletion for groups in the user groups

* feat: open group joining should work now

* feat: add groups to configs for push

* fix: handling user group updates bug fix for closed groups instead of all groups

* fix: open group sync persistence

* feat: add in activity finish if recipient no longer exists (deleted thread) from sync

* feat: support avatar removal from shared library

* feat: support thread deletion and refactoring a lot of getOrCreateThread references to go via storage or assume they are correctly set to hook into the contact and volatile creation during thread creation

* fix: database update not deleting in certain circumstances, storage persisting and removing the volatile convo info for thread deletion / creation, NTS hidden getter values in shared library

* refactor: make update listener visibility package

* refactor: update kotlin

* feat: update dependencies and support outdated config messages, refactor config factory to return null configs if new configs not supported

* feat: update shared library to use priority only, fix compile errors, fix group member sync problem

* fix: compile error

* fix: profile avatar fixes for local user now that we aren't setting local user profile key

* Revert "fix: profile avatar fixes for local user now that we aren't setting local user profile key"

This reverts commit 3f569e3403.

* refactor: let the local number update recipient details in profile manager

* fix: don't recreate thread after leaving

* fix: fix up the duplicate thread creation in the message receive handler

* fix: fix the placeholder rendering on new messages, add in extra context logging for adding contacts and preventing new thread creation on new messages of various types

* feat: add test theme for xml layout previews

* feat: add shortened hex for session IDs throughout, replace nullable getName with null in underlying contacts for individual contacts, build shared lib with release mode, remove todo, fix broken unit test

* feat: setup android unit tests for verifying storage behaviours and state of shared configs

* feat: adding dependencies to try and get android tests working, fixing bug with initial config not syncing properly

* fix: remove hilt testing, add spy on app context storage field instead, update libsession-util to fixed sodium cmake branch

* refactor: use PR version of libsession-util to test cmake build

* fix: new build on normal repo

* feat: new libsession util commit

* refactor: remove the old custom build libsodium stuff from cmake

* feat: update libsession module

* fix: add legacy config subscription to the home activity to enable showing banner at any time

* fix: pinned status for communities and groups, group last read time being set to snodeapi.now on finish joining

* fix: some open group volatile convo fix for last read timer being set. Need to investigate further

* fix: prevent blocking local number

* fix: adding in more checks for open group inbox recipients before being saved to the shared configs. Prevent sending typing indicator for blocked users

* fix: add blocked check for read receipt and updating expiring messages

* fix: another contact recipient config library call removed for non-standard IDs

* fix: another ID check

* fix: don't process thread creation for user is sender && recipient (sync message) for message request responses

* refactor: mark as read on open and use less buffer time

* fix: finally fix the darn unread count issue by

* fix: removing debug logs, adding failure error handling logs for expiry message updater, properly using the message thread ID created for the expiring messages. Process the non-thread messages properly with await in BatchMessageReceiveJob

* fix: checking the last read open to message and make sure that scroll behaviour matches expected, fix the config sync job not deleting ALL old hashes only latest

* refactor: try to add a retry logic to config sync job in case of snode failure

* build: update submodule

* fix: remove user notifications for leaving group to prevent synced device issues, don't create thread in messages for new closed groups, includei nactive groups in the deletion queries for merging group configs

* feat: use blinded message count for banner also

* refactor: remove some logging, don't use blinded conversations in the list

* fix: don't set the read flag in update notifications, some roundabout logic for first loads and scrolling to last known positions

* refactor: merge changes, re-add the group check in unapproved messages

* fix: re-poll on fail in case that was breaking anything

* fix: pinning groups and notifying list listeners in threadDb.setPinned

* feat: add in TTL extension subrequest and builder, enable extending TTLs for all latest config messages in poll as subrequest

* feat: add block to the delete all message requests, only if they're not open group inbox contacts

* refactor: disable edit text for non contacts

* refactor: let the user display name return "You" for local user

* fix: prevent NTS self create thread on user view bind

* refactor: remove populate public key cache if needed call which seems unnecessary at that point, maybe UserView refs have changed since 2020

* refactor: use just first visible instead of completely visible, merge message sender changes

* fix: prevent block of users in delete all

* fix: self sync sync message failures for default values

* feat: update libsession-util, adjust docs, update mms and sms to use message sent timestamp instead of -1 for last read in the thread

* fix: some compile issues in tests and some TODOs for things to do before merge

* fix: handle recyclerview scrolled on scroll to first unread if it's the first load

* fix: added more migration code for deleting unnecessary threads and groups, fixed a post-migration last seen issue on last item (current read is now), comment out actual network sync while testing migrations

* feat: adding a force new configs flag and logic for timestamp handling / forced configs, fix issue with handling legacy messages

* refactor: re-add the sending of configs

* fix: don't add contacts if they don't exist in the profile manager

* [wip]
fix: trying to consolidate prof pic and key properly

* feat: add logs and fix compile issue with a themes.xml entry, add removing profile picture into logic for profile manager

* fix: force has sent for local user, only prevent setting last seen for open group recipients, allow empty user pics to trigger config sync in settings

* fix: nts threads

* fix: open group avatar loop for open groups we have left

* feat: add a wrapper hash to track home diff util changes for wrapper contact recipient info, add test for dirty state in double set

* feat: add a dump in there as well

* refactor: more test code refactor

* fix: update last seen if later than current

* fix: open group threads and avatar downloads

* fix: add max size and maybe fix the non-200 sub requests for batches (for 421s in particular)

* fix: open group comparison issues potentially, have to update some more outgoing message open group flags for visibility of details etc

* Updated to the latest libSession-util

* Updated logic to delete legacy groups when kicked/left

* Added the legacy group 'joined_at' value

* Replaced incorrect character in JNI

* Fixed an issue where the group keyPair was getting encoded incorrectly

* Updated the code to ignore outdated legacy group control message changes

* Updated the code to ignore messages invalidated by the config

* [Review] Updated the poller to process config messages before standard

* Cleaned up the outdated message logic

* Fixed inverted config dropping flags

* Fixed an issue where the joining a community would read all messages

Stopped using a reversed RecyclerView in all cases (caused the unread issue)
Updated the logic to jump to the newly sent message when sending a message (to be consistent with other platforms)
Updated the logic to refresh the DB unread count when the cursor receives an update

* Updated the conversation to highlight the first unread message on open

* Fixed a couple of bugs with the highlighting

* Fixed a bug where the user profile picture wasn't downloading correctly

* feat: add all namespaces to delete all messages request and signature verification data

* fix: merge namespace hashes for signature returned and

* fix: import correct scroll to bottom

* build: update version code and name

* fix: initial contact generation fix for existing blinded contacts

* fix: initial convo generation fix for existing blinded convos (?)

* fix: conversation unread not doing a check for standard ID prefix

* fix: thread ID not being created for legacy config messages

* fix: don't treat 404 as bad snode

* fix: don't add retrieve profile job if we have one for that address

* build: update build code

* fix: reduce attempts for downloading image, invert unreachable type check

* fix: attempting to fix preventing message processing if group thread is not active for closed groups and initial contact dump only allows conversations with thread, may need further optimisations though

* feat: Added an unread marker and search result focus highlighting

* fix: empty set in appropriate places for current closed groups

* build: update build version code

* fix: fix the notifications and request at appropriate time

* refactor: remove debug logging for thread create and delete

* build: update build number

* fix: new community doesn't break persisting config if the .add request fails

* build: trying to track down broken retrieve avatar job

* feat: update to latest libsession dev

* fix: maybe fix avatar download for new messages

* fix: 404s causing snode errors and trying to retrieve avatars that have already 404'd a lot

* fix: closed group creation sets thread date to formation timestamp

* build: update version code

* build: update version code

* build: remove debuggable release build

* fix: use new permissions for external attachments

* build: update version code

* chore: remove debug logs

* fix: tests and main thread blocking db fetch for path status view

* wip: trying to track down failure to mark conversation as read in delayed group add

* wip: add more logs for initial last Read sync of communities

* wip: maybe the volatile is being updated with 0 on batch message receive?

* fix: maybe syncing read statuses are working now

* chore: remove debug logs

* build: update build number

* fix: trying to improve performance

* fix: add close to banner

* refactor: hide seed reminder in preview

* build: update build number

* fix: maybe requires update thread no matter what

* fix: message request banner shows again

* fix: android tests work again and permissions

* fix: blocked contacts click handler being overridden by something

* Revert "fix: blocked contacts click handler being overridden by something"

This reverts commit 608572fc42.

* build: update build number

* refactor: remove unused dependencies and update minor for sqlcipher

* fix: actually do insert contact, because otherwise name doesn't get set properly

* fix: maybe fix scroll to bottom issue

* build: update build number

* fix: the message time and jump to message queries are more optimized

* fix: maybe fix the last seen issues

* build: update build number

* fix: pfp broken closed groups why

* fix: add admins and members as member list instead of just members

* fix: exclude lgc without membership > 1 and inactive explicitly

* fix: submodule update

* fix: compiles with removal of iterator erase

* fix: unread indicator updates properly in ConversationActivityV2

* fix: unread notifications clear and altered if any notifications exist (prevents clearing read notifications in conversation or on home screen)

* refactor: profile pictures kinda broken

* build: update build number

* refactor: remove full hash from log

* fix: isPinned threadDB call

* refactor: use mutex in all libsession native calls, change timestamp

* refactor: add basic support for blinded v2 prefixes

---------

Co-authored-by: Morgan Pretty <morgan.t.pretty@gmail.com>
2023-07-14 18:27:13 +10:00
andrew
adfa94614b Merge branch 'dev' into utilise-dialog-dsl 2023-07-13 12:12:01 +09:30
andrew
c3ef4d6e7b Merge branch 'dev' into utilise-dialog-dsl 2023-07-13 11:11:58 +09:30
andrew
8390be0489 Fix caching 2023-07-11 19:44:58 +09:30
andrew
d24cfef3d1 Remove unused sizeResId 2023-07-11 19:12:06 +09:30
andrew
d83532b6af Use Channel and Flow to avoid duplicate events 2023-07-11 13:28:44 +09:30
andrew
1845b60dac Refactor slide out of MessageDetailsActivity 2023-07-11 12:28:04 +09:30
andrew
172f85ae4f Fix some edge cases in fileDetails 2023-07-11 01:30:03 +09:30
andrew
fb68aaede6 Cleanup Components imports 2023-07-11 01:29:44 +09:30
andrew
09b321530d Add strings 2023-07-10 16:09:38 +09:30
andrew
a1e8ad2c37 Cleanup ViewModel 2023-07-10 13:01:46 +09:30
andrew
821327569e Cleanup Themes 2023-07-10 01:05:09 +09:30
andrew
b26c98af68 Hide Resend if no error 2023-07-10 00:35:13 +09:30
andrew
0824713ac5 Fix theming and polish 2023-07-10 00:12:42 +09:30
andrew
bbc9cdfeeb Cleanup ViewModel 2023-07-09 23:31:43 +09:30
andrew
d8b85768d2 Fix sms messages 2023-07-07 10:46:43 +09:30
andrew
e5b19d4ea4 Fix incorrect recipient used as threadRecipient to launch MediaPreview 2023-07-06 22:39:54 +09:30
andrew
fc87ae18f5 Fix message padding 2023-07-06 15:48:31 +09:30
andrew
1d1977ca7a Make expand button clickable 2023-07-06 15:32:51 +09:30
andrew
c417b37236 Hide thumbnails 2023-07-06 15:23:58 +09:30
andrew
8be1e8e87e Wire up voiceMessageView 2023-07-06 15:20:45 +09:30
0x330a
4c9a237d87
fix: compile errors 2023-07-06 14:48:05 +10:00
andrew
68684bb839 Refactor VisibleMessageContentView#onContentClick 2023-07-06 13:09:00 +09:30
andrew
efb5b27191 Fix divider color 2023-07-06 12:03:33 +09:30
0x330a
325abe020a Merge remote-tracking branch 'upstream/dev' into disappearing-messages
# Conflicts:
#	app/src/main/java/org/thoughtcrime/securesms/conversation/v2/ConversationActivityV2.kt
#	app/src/main/java/org/thoughtcrime/securesms/conversation/v2/ConversationViewModel.kt
#	app/src/main/java/org/thoughtcrime/securesms/conversation/v2/menus/ConversationMenuHelper.kt
#	app/src/main/java/org/thoughtcrime/securesms/database/Storage.kt
#	app/src/main/java/org/thoughtcrime/securesms/database/helpers/SQLCipherOpenHelper.java
#	app/src/main/java/org/thoughtcrime/securesms/notifications/AndroidAutoReplyReceiver.java
#	app/src/main/java/org/thoughtcrime/securesms/repository/ConversationRepository.kt
#	app/src/main/res/layout/activity_conversation_v2_action_bar.xml
#	app/src/main/res/layout/expiration_dialog.xml
#	app/src/main/res/menu/menu_conversation_expiration.xml
#	app/src/main/res/menu/menu_conversation_expiration_on.xml
#	app/src/main/res/values/strings.xml
#	libsession/src/main/java/org/session/libsession/messaging/jobs/BatchMessageReceiveJob.kt
#	libsession/src/main/java/org/session/libsession/messaging/messages/control/MessageRequestResponse.kt
#	libsession/src/main/java/org/session/libsession/messaging/messages/signal/IncomingMediaMessage.java
#	libsession/src/main/java/org/session/libsession/messaging/messages/signal/IncomingTextMessage.java
#	libsession/src/main/java/org/session/libsession/messaging/messages/signal/OutgoingMediaMessage.java
#	libsession/src/main/java/org/session/libsession/messaging/sending_receiving/MessageSender.kt
#	libsession/src/main/java/org/session/libsession/messaging/sending_receiving/MessageSenderClosedGroupHandler.kt
#	libsession/src/main/java/org/session/libsession/messaging/sending_receiving/ReceivedMessageHandler.kt
#	libsession/src/main/java/org/session/libsession/messaging/utilities/UpdateMessageBuilder.kt
#	libsession/src/main/java/org/session/libsession/snode/OnionRequestAPI.kt
#	libsession/src/main/java/org/session/libsession/snode/SnodeAPI.kt
#	libsignal/src/main/java/org/session/libsignal/protos/SignalServiceProtos.java
2023-07-05 22:27:59 +10:00
andrew
8d66d948ca Polish 2023-07-04 22:10:48 +09:30
andrew
d6b1440217 Refactor MessageDetailsViewModel 2023-07-04 15:27:00 +09:30
andrew
7cd2bd0e0d Cleanup 2023-07-04 15:11:40 +09:30
andrew
6209ae68a8 Cleanup 2023-07-04 14:56:35 +09:30
andrew
ee0141f82d Refactor to Components 2023-07-04 14:09:40 +09:30
andrew
f82ed7718d Cleanup CarouselButton 2023-07-04 13:26:26 +09:30
Andrew
7da3e4f022
Fix blocked contacts button (#1264) 2023-07-04 11:39:49 +09:30
andrew
26aed783e8 Fix Divider padding 2023-07-04 11:34:20 +09:30
andrew
6890f5c448 Add image click listener 2023-07-04 09:31:14 +09:30
andrew
d719660030 Add expand button 2023-07-03 21:25:59 +09:30
andrew
0fcd997290 Fix divider color 2023-07-03 20:40:16 +09:30
andrew
70e63a23bc Fix indicator colors 2023-07-03 20:12:23 +09:30
andrew
0ec93e4b36 Refactor CarouselButtons 2023-07-03 18:30:15 +09:30
andrew
1d29b5465f Refactor prev and next buttons 2023-07-03 17:41:30 +09:30
andrew
db4ff94084 Add prev and next buttons to carousel 2023-07-03 17:19:33 +09:30