* fix: Authenticate all Open Group API calls
* Use unblinded authentication when we have `capabilities` data for the open group server we are sending the request to but don't have the `blind` capability
* Use blinded authentication when we haven't gotten any `capabilities` for an open group server, or if we have `capabilities` and the server has the `blind` capability
* Hide send button when message contains only whitespace
* Fix bug displaying user ID when quoting own message
* Fix notification update for incoming unsend request
* Improve check if author is own user when quoting messages
* Fixed video call auto rotate, when auto rotate is disabled
* refactor: simplify comparison
* Stop playing message if deleted
* Accidental change
* Accidental change
* Comments
* Feedback
* Comments
* Import
* Fix delete message for everyone doesn't stop the audio playing
* Correct the usage of flowOn
* Import
* Optimise XML
* Remove unused file
* Remove view pools
* Remove the use of executor in ThreadUtils
* Using trim and empty to capture semantic concept of nothing being in there
* Remove config checks (PR 1294)
Refactor: remove checks for whether new config is enabled throughout config factory generation.
First commit from PR 1294.
* [SES-2162] - Remove wrapping of config message (#1517)
* Remove wrapping of config message
* Addresses feedback
* Merged in ThreadUtils fix
* JDK installation
* Revert JDK change
---------
Co-authored-by: fanchao <git@fanchao.dev>
* Update libsession
* [SES-337] Add rounded corners to thumbnail in QuoteView (#1285)
* Add rounded corners to thumbnail in QuoteView
* Simplify ThumbnailView
* Cleanup ThumbnailView
* Removed include custom attributes
The custom attributes are not passed to the view.
I added the radius programatically instead.
* Clipping whole thumbnail view instead of just the image requests
---------
Co-authored-by: AL-Session <160798022+AL-Session@users.noreply.github.com>
Co-authored-by: ThomasSession <thomas.r@getsession.org>
* Highlight @You mentions (#985)
* Highlight @You mentions
* fix: resolve merge conflicts
* Setting the proper design rules for mentions
* New RoundedBackgroundSpan, applied to "you" mentions
The rounded background highlighter can take padding, so there is no need to add those extra spaces at the start and end.
* Better mention highlight logic
Some mention highlight should only format the text and not apply any styling.
Also making sure we cater for all cases properly
* Updated the text color logic based on design rules
* Fine tuning the color rules
* Removing usage of Resources.getSystem()
Only making the db call if there actually is a mention
* Moving color definition outside the loop to avoid repetitions
---------
Co-authored-by: charles <charles@oxen.io>
Co-authored-by: 0x330a <92654767+0x330a@users.noreply.github.com>
Co-authored-by: ThomasSession <thomas.r@getsession.org>
* [SES-2018] Refactor mention (#1510)
* Refactor mention
* Fixes robolectric test problem
* Fixes tests
* Naming and comments
* Naming
* Dispatcher
---------
Co-authored-by: fanchao <git@fanchao.dev>
* [SES-1966] Attachment batch download and tidy-up (#1507)
* Attachment batch download
* Addressed feedback and test issues
* Feedback fixes
* timedWindow for flow
* Feedback
* Dispatchers
* Remove `flowOn`
* New implementation of timedBuffer
* Organise import
* Feedback
* Fix test
* Tidied up logic around `eligibleForDownload`
* Updated comment
---------
Co-authored-by: fanchao <git@fanchao.dev>
* Fix issue with span being the full length (#1528)
* Proper display of unresolved names in mentions (#1530)
* Fix issue with span being the full length
* Making sure a mention with a username without a resolved name still displayed with the appropriate style with the truncated is
* Testnet build (#1532)
Co-authored-by: fanchao <git@fanchao.dev>
* Allow "public.loki.foundation" to be accessed by http (#1534)
Co-authored-by: fanchao <git@fanchao.dev>
* Bumping the version code and name
* Reverting temporary change
---------
Co-authored-by: charles <charles@oxen.io>
Co-authored-by: andrew <andrewgallasch@gmail.com>
Co-authored-by: aaronkerckhoff <aaronkerckhoff@gmail.com>
Co-authored-by: Rugved Darwhekar <darwhekarrugved@gmail.com>
Co-authored-by: 0x330a <92654767+0x330a@users.noreply.github.com>
Co-authored-by: fanchao <git@fanchao.dev>
Co-authored-by: Fanchao Liu <273191+simophin@users.noreply.github.com>
Co-authored-by: AL-Session <160798022+AL-Session@users.noreply.github.com>
Co-authored-by: ceokot <ceokot@users.noreply.github.com>
* 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>
* 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>
* 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>
* 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>
* 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: = <=>
* 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>