Commit Graph

2882 Commits (e95fa6cc03ec2976e85bf3071f1055cb6412f42b)

Author SHA1 Message Date
SessionHero01 e95fa6cc03
Merge pull request #1018 from session-foundation/release/1.21.1
Bring 1.21.1 back to dev
1 month ago
SessionHero01 3e7c025161
Update AGP and a few essential dependencies (#1017) 1 month ago
SessionHero01 36590bea81
Fix website variant build (#1015) 1 month ago
SessionHero01 bbdfec3a47
Add resetToken to TokenFetcher (#1009)
* Add resetToken to TokenFetcher

* Remove import
1 month ago
SessionHero01 8aaf985cdd
Bump version to 1.21.1 1 month ago
ThomasSession 3ba50dae3f
SES-3506 open document messages on tap (#1013)
* SES-3506 open document messages on tap

* Clean up

* PR feedback
1 month ago
ThomasSession 01c3003b36
Feature/calls kee updates (#1007)
* SES-3469 Fixing shortcut activity

* Reduce the time shown from 00:00:00 to 00:00 expand as needed when call exceeds the time which can be shown in 00:00

* Moved the voice setting to the top of the privacy page, and allowed for auto toggle of settings

* Disabling the switch camera butotn when not in video

* Moving logic into VM and adding step counter

* comments

* PR feedback - not exposing a mutable set
1 month ago
SessionHero01 2196c74563
Compilation issue 1 month ago
SessionHero01 46303e2168
Merge remote-tracking branch 'origin/dev' into merge-1.21.0
# Conflicts:
#	app/src/main/java/org/thoughtcrime/securesms/preferences/SettingsActivity.kt
#	app/src/main/java/org/thoughtcrime/securesms/preferences/SettingsViewModel.kt
#	app/src/main/java/org/thoughtcrime/securesms/service/WebRtcCallService.kt
1 month ago
SessionHero01 3bdba5374e
Increase build version and updated deprecation dates (#1008) 2 months ago
SessionHero01 c55840addd
Logs 2 months ago
SessionHero01 37fa8e4ae2
Update to what counts as connected 2 months ago
SessionHero01 54ec9e5d10
Renamed 2 months ago
SessionHero01 84d775cd06
Merge remote-tracking branch 'origin/release/1.21.0' into release/1.21.0 2 months ago
SessionHero01 c5912c36e0
Fix falsely reported internet connectivity 2 months ago
ThomasSession 8e1ca752d9 Fixing logs sharing crashing 2 months ago
ThomasSession d6584cee3c
Merge pull request #1001 from session-foundation/release/1.21.0
Release/1.21.0
2 months ago
SessionHero01 24ecc849c6
Bump version code to 395 2 months ago
SessionHero01 73db78ab5d
Enable libsession login (#999) 2 months ago
ThomasSession bde6d4c40a
Updated Calls (#917)
* Call tweaks pt1

Removed wake lock code
Tweaked permissions
Sending a manual fullscreen notification when the service can't be started
Manual code to not clear notifications for calls related pn
Fixed issue in pn decrypt code
Changed logic to display generic notification
Generic notificaiton is now clickable

* Making the CallService a singleton instead of an Android service as a quick way to avoid the complications that come with System services

* Making the call Service a regular class as opposed to an Android service in order to help avoid the system limitation when the app is in the bg or killed

* Cleaning up call new setup

* Declining or hanging up from notificaiton does not go via activity anymore, but via a reveicer

* Reworked rtc states and added titles and subtitles

* Making sure we do not try to connect if already connected

* Renaming rtc service to rtc bridge

* Cleaning up usage of "wants to answer"

* updated todos

* Moving classes into the webrtc package for clarity

* Added banner to get back to call

* Added the ability to ignore a call when swiping off notification

Ignoring the call from the point of view of the person ignoring acts as if the call was gone, but from the point of view of the caller the call continues to ring

* Animating banenrs

* Added service to maintain app process during call

* New title/subtitle/call time ui position

Also reworked some "has accepted call" logic

* Making the "as accepted call" as a flow so the ui can change rapidly

* Call notification logic

Do not show a declined call as a missed call since you actively declined it.
Do not show incoming and outgoing successful call control messages as unread. They should be read by default since you know about the call.

* Using internet connectivity class

* Better handling of bluetooth audio and speaker toggle

* Cleaning up logs

* Cleaned up l ogs

* Cleaning up the muting  logic. Not enforcing unmuting on answer/call start but instead preserve the toggle choice

* Cleaning up speakerphone toggle  logic

* Cleaning up video toggle logic

Moving logic away from the bridge staight to the call manager

* Cleaning up flip camera logic

* Simplify answer call logic

* Cleaning up logic to call the bridge or call manager directly

* Cleaning up usage of intents

* Cleaning up more intents

* Cleaning intents and simplifying logic

* Cleaning out intents and making sure we use the executor

* Making sure toasts are on the main thread

* Cleaned up todos

* Update app/src/main/java/org/thoughtcrime/securesms/home/HomeViewModel.kt

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

* PR feedback cleanup

* Addressing the PR feedback

* Resolving conflicts and issues from dev

---------

Co-authored-by: AL-Session <160798022+AL-Session@users.noreply.github.com>
2 months ago
ThomasSession 1e22157004
Merge pull request #998 from session-foundation/release/1.21.0
Release/1.21.0
2 months ago
ThomasSession c3c903caed
Polling node rotation (#996)
* Rethinking poller logic

* Reworking poller logic

Reworked the poller as the logic wasn't correctly rotating across snodes beyond on exception thrown, which caused issues when landing on a snode with no data which isn't an exception.
Moved away from Promises in favour of coroutines

* Update libsession/src/main/java/org/session/libsession/messaging/sending_receiving/pollers/Poller.kt

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

* PR feedback

* Using same size as messages for input text in convo

* PR feedback

---------

Co-authored-by: AL-Session <160798022+AL-Session@users.noreply.github.com>
2 months ago
SessionHero01 b7ab2c51db
Group poller tweaks (#995) 2 months ago
SessionHero01 bd90383a02
Disable three dot menu for kicked groups too (#993) 2 months ago
ThomasSession 9f414aa52c
SES-2113 - Never display a username that matches that user's id. Truncate instead (#992) 2 months ago
SessionHero01 8e07815e94
Merge remote-tracking branch 'origin/release/1.21.0' into merge-1.21.0
# Conflicts:
#	app/src/main/java/org/thoughtcrime/securesms/ApplicationContext.java
#	app/src/main/java/org/thoughtcrime/securesms/components/dialogs/DeleteMediaPreviewDialog.kt
#	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/messages/QuoteView.kt
#	app/src/main/java/org/thoughtcrime/securesms/database/model/DisplayRecord.java
#	app/src/main/java/org/thoughtcrime/securesms/dependencies/SessionUtilModule.kt
#	app/src/main/java/org/thoughtcrime/securesms/groups/GroupManagerV2Impl.kt
#	app/src/test/java/org/thoughtcrime/securesms/conversation/v2/ConversationViewModelTest.kt
2 months ago
ThomasSession bcabdc4fba
Fix/groupsv2 fixes (#989)
* SES-3431 no emoji reaciton on control messages

* SES-3423 Quoted messages styling

* clean up

* SES 3430 - delete media dialogs

* Update conversation when attachment changes
2 months ago
SessionHero01 b44ea31d8e
[SES-3434] - Fix receiving left groups' notification (#986)
* Fix still receiving generic notification for groups

* Imports

* Fixes tests

* Fixes compile issues
2 months ago
SessionHero01 119a3e7cfe
Make sure everyone can see resend invite option (#988) 2 months ago
SessionHero01 737cffc74a
Make sure group keys are pushed before anything else (#987) 2 months ago
ThomasSession 11a0ee9fbb
Fix/groupsv2 fixes (#985)
* SES-3431 no emoji reaciton on control messages

* SES-3423 Quoted messages styling

* clean up
2 months ago
SessionHero01 d7f697572e
Remove three dot menu for kicked group (#984) 2 months ago
AL-Session 6f75829bdb
fix/QA882 voice message duration on android 9 API 28 (#980)
* WIP

* Do not update final outgoing voice message duration as it's possible to miscalculate it on older Android versions

* Revert attempted hardening adjustments to DecodedAudio.kt

* Correct the voice message check & minor tidy

* Minor tidy up

* Addressed PR feedback to simplify

---------

Co-authored-by: alansley <aclansley@gmail.com>
2 months ago
ThomasSession 13c638f00d
Making sure we don't delete a NTS on restore (#982) 2 months ago
SessionHero01 0e62a2f301
[SES-3115] - Missing "xxx NOT SENT" status text (#975) 2 months ago
SessionHero01 4d4a48b689
Bump version code to 394 2 months ago
SessionHero01 02da89670d
Bump version code and legacy group deprecated dates for internal test release 2 months ago
SessionHero01 45e1f6720d
[SES-3395] - Fix group notification issue (#973) 2 months ago
ThomasSession a1fd6cc1d8
Avatar reupload config update (#971)
* Making sure we update the config when reuploading an avatar as a way to keep the file server image alive

* Wrong error type

* PR feedback - cleaned up download usage
2 months ago
AL-Session d5b80440ad
Fix/SES-1789 Message info for send and receive (#970)
* WIP

* Implemented sent/sending/received behaviour

* Adding some left behind changes

* Make sure colons are added where needed in message info & that we don't show sending... AND an error msg

* Cleanup imports

* PR feedback

---------

Co-authored-by: alansley <aclansley@gmail.com>
2 months ago
SessionHero01 01b1d26f76
Subscribe to group config messages (#969) 2 months ago
SessionHero01 ad7792f659
Rework group poller lifecycle so that it supports polling once (#967) 2 months ago
SessionHero01 df977ad15d
Fix compile issue (#965) 2 months ago
SessionHero01 0831c6621c
Changes to use load_admin_key (#964) 2 months ago
ThomasSession b412bf16ca
SES-3367 - properly allowing for user name edit in groups (#963) 2 months ago
AL-Session 3ff39dc0dc
SES-2145 - Fix re-scroll to bottom after clicking on original message in a reply (#961)
* Re-scroll to bottom after click on OG msg of reply fixed & message highlighting added to match iOS

* Fixing UI issues

Making sure the glow isn't clipped
Scrolling past the quoted view so that it isn't right at the top

* Consolitate recycler view scroll & highlight functionality into a single scrollListener

* Fix comment typo

* Scroll past targeted messages by a given offset in pixels rather than in messages

* Made the linearSmoothScroller lazy and tidied up

* Removed unused property

* Precalculate scroll offset for scroll-target messages

---------

Signed-off-by: alansley <aclansley@gmail.com>
Co-authored-by: alansley <aclansley@gmail.com>
Co-authored-by: ThomasSession <thomas.r@getsession.org>
2 months ago
SessionHero01 097dc273b0
[SES-2970] - Add expired groups handling (#962) 2 months ago
AL-Session 1b6addc9c7
Fix/username cleanup --> remove address serialize method (#959)
* Centralising username access

* Centralising username logic

* Removing ContactUtil

* Cleaning up shortString

* Removed address.serialize as toString is the same thing, couple of methods converted to expression-bodied format & added a mock for username-utils to the ConversationViewModelTest class

---------

Co-authored-by: ThomasSession <thomas.r@getsession.org>
Co-authored-by: alansley <aclansley@gmail.com>
2 months ago
ThomasSession 92f1390fad
Feature/username cleanup (#957)
* Centralising username access

* Centralising username logic

* Removing ContactUtil

* Cleaning up shortString

* Making sure the name doesn't overflow in a message view

* Using Lazy to avoid dependency cycle
2 months ago
AL-Session e10054c4ee
Fix/qa 882 mic button (#943)
* WIP spam prevention

* Record voice button spam UI state confusion addressed

* Remove leftover commented code

* Unused variable removed

* Simplifying voice recording logic

* Clean up

* Clean up

* Hopefully fix toast window layout exception on microphone button spam

* Refactored voice message too short detection mechanism to avoid using deprecated call to 'someToast.view?.isShown'

---------

Co-authored-by: alansley <aclansley@gmail.com>
Co-authored-by: ThomasSession <thomas.r@getsession.org>
2 months ago