Commit Graph

2134 Commits

Author SHA1 Message Date
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
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
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
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
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
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
0x330a
1d9ac6ac10
build: update build number 2024-04-10 15:31:33 +10:00
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
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
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
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
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