* 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
* 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>
* 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>
* 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
* 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>
* 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
* 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>
* 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>
* 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>
* 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