Commit Graph

9546 Commits (7d51b4a5fa71c968fdf2c908da333fcb098734e8)
 

Author SHA1 Message Date
SessionHero01 7d51b4a5fa
Fixed conflict 3 months ago
SessionHero01 8457df34c4
Merge remote-tracking branch 'origin/release/1.21.0' into merge-release-1.21.0
# Conflicts:
#	app/src/main/java/org/thoughtcrime/securesms/conversation/v2/ConversationActivityV2.kt
#	app/src/main/java/org/thoughtcrime/securesms/conversation/v2/messages/VisibleMessageView.kt
#	app/src/main/java/org/thoughtcrime/securesms/preferences/SettingsActivity.kt
3 months ago
SessionHero01 75ccd3dd2b
Add a global state management for internet connectivity (#907) 3 months ago
SessionHero01 e5e00c4548
Onion paths as a StateFlow (#901) 3 months ago
SessionHero01 0dc8aa1410
Fix control message issues on leaving group (#904) 3 months ago
stfsession ac6bb541da
[Automated] Update translations from Crowdin (#862)
Co-authored-by: Bilb <1544279+Bilb@users.noreply.github.com>
3 months ago
stfsession c05aca33be
[Automated] Update translations from Crowdin (#862)
Co-authored-by: Bilb <1544279+Bilb@users.noreply.github.com>
3 months ago
SessionHero01 c4eee78c86
Fix incorrect version of "you were removed" used (#903) 3 months ago
SessionHero01 bb7d867c46
Incorrect use of channel (#902) 3 months ago
AL-Session 748ccf06e7
fix/voice message upload duration ONLY (#894)
* Re-did fixing voice message upload duration ONLY - no caching changes at all

* Removed setting interim audio durations in bind and instead store the duration in the unused-for-AudioSlides caption field

* Addressed PR feedback and anti-button-spam measures to prevent the voice recording mechanism getting into a broken state if the user rapidly spams the record voice message button

* Use MediaUtil for duration formatting, prevent double-checking if we can record a voice message, correctly handle durations for lock then send voice messages, and re-adjust text autocompletion

* Removed unused imports

* Cleanup for interim push before large scale refactor

* Minor tidy

* PR comment feedback

* Added TODO comment regarding refactoring voice message logic into the ConversationActivity ViewModel

---------

Co-authored-by: alansley <aclansley@gmail.com>
3 months ago
SessionHero01 c9c2ccb044
[SES-2930] - Show the correct toast message when invitation fails (#900)
* Universal message handling for failing to send invitation

* Comment
3 months ago
SessionHero01 ab2bc2ff2b
Show "xxx is invited" upon group creation (#899) 3 months ago
SessionHero01 7b1a25d0ef
[SES-2960] - Control messages for leaving groups (#898)
* Removed the "overridenSnippet" facility

* Add missing control messages
3 months ago
SessionHero01 d1ab9ccc66
[SES-3222] - Add "you" in the list of mention (#896)
* Add "you" as a candidate of mention

* Removed logs
3 months ago
SessionHero01 139dd2b307
[SES-3183] - Do not accept 1-to-1 disappearing messages in a group (#895) 3 months ago
SessionHero01 1b411ec2c1
Update sorting order (#893) 3 months ago
SessionHero01 e214868f15
Fix unable to receive "invite-as-admin" (#892) 3 months ago
SessionHero01 db4e384cd5
[SES-3183] - Delete existing expiring settings message when receiving new ones (#891) 3 months ago
AL-Session a17a29f5d8
Done (#890)
Co-authored-by: alansley <aclansley@gmail.com>
3 months ago
SessionHero01 0663876230
[SES-3119] - Unread count not cleared (#887) 3 months ago
SessionHero01 54f381e2a7
Fix poller unable to start when approving group invite (#888) 3 months ago
AL-Session 5cd8e349ec
Fix/attachment filename finetuning (#886)
* Initial commit

* Initial attempt at modernising PhassphrasePromptActivity and BiometricSecretProvider

* Commit before refactoring to cache shared content Uri

* External sharing with fingerprint-locked device now working

* Adjust PassphrasePromptActivity to not allow multiple instances if you have one then external share via session

* Cleanup and documentation

* End of day push

* Yeah, now external sharing ONLY works on a Pixel 7a and not most other things - will need to rework this in 2025 =/

* Added forced READ_URI permission to intent - works for external share of links now, but not images at present

* WIP

* Working, now to clean up

* Broke then fixed

* End of day push

* Now working on Pixel 7a also

* Commit before refactor

* Refactor WIP

* Refactored PassphraseRequiredActionBarActivity to ScreenLockActionBarActivity, amongst other things

* Cleanup

* Tiny fix

* Further cleanup

* WIP filename fix

* Fixed GIF saving amongst other things

* Cleanup for PR

* Fixed overlooked drawable ID change

* Cleanup

* PR feedback

* PR feedback

* PR feedback

* PR feedback

* PR feedback

* Fix startup crash & successful unlock drawable

* Adjusted fileprovider back to previous name to keep inline with avatar and share logs file providers

* Cleaned up ShareActivity null-checks via lateinits

* Fixed up ScreenLockActivity so we don't get stuck & inform user of system-level biometric lockouts

* Fixed ShareActivity.onCreate to match OG behaviour

* Added filename handling for video files

* All working - commit before cleanup

* Cleaned up

* Addressed PR feedback regarding biometric unlock

* Re-fixed external share filenames following Media class adjustment today

* Cleanup

* Fixed Giphy GIF filenames

* PR cleanup

* PR feedback

* Added comment

* Reverted onBackPressedDispatcher change

* Added voice message filename generation method to FilenameUtils

* Push before refactor

* WIP

* Streamline filename creation

* Cleanup

* Enforce non-null status on extracted filename

* Adjusted Attachments to force filenames & removed reliance on Uri filename extraction

* End of day push

* Added synthesized filename creation for pre-existing voice messages that lack a filename

* Cleanup and refactor mechanism for legacy voice message filename synthesis

* Remove unnecessary call to getFilenameFromUri if we can extract the filename from the attachment

* Added filename synthesis on input from legacy Session Android clients that provide null filenames

* Added some additional mime-types to our incoming 'fromProto' filename generation - should be very comprehensive now

* Leaving logic on the app side

Removed logic from libsession
Sanitising file names before saving them to storage
Made sure we don't displa a date when getting filename from Slide otherwise it'll keep changing

* Cleaned up

* Using the URI's timestamp when possible

* WIP

* Working - commiting before cleanup

* Cleaned up for PR

---------

Co-authored-by: alansley <aclansley@gmail.com>
Co-authored-by: ThomasSession <thomas.r@getsession.org>
3 months ago
SessionHero01 681ac32198
Reset last hash on promotion (#885) 3 months ago
SessionHero01 eb2f92b8a7
Fix unable to delete mms message (#884) 3 months ago
AL-Session 2607394d19
Fix/share external with fingerprint lock (#867)
* Initial commit

* Initial attempt at modernising PhassphrasePromptActivity and BiometricSecretProvider

* Commit before refactoring to cache shared content Uri

* External sharing with fingerprint-locked device now working

* Adjust PassphrasePromptActivity to not allow multiple instances if you have one then external share via session

* Cleanup and documentation

* End of day push

* Yeah, now external sharing ONLY works on a Pixel 7a and not most other things - will need to rework this in 2025 =/

* Added forced READ_URI permission to intent - works for external share of links now, but not images at present

* WIP

* Working, now to clean up

* Broke then fixed

* End of day push

* Now working on Pixel 7a also

* Commit before refactor

* Refactor WIP

* Refactored PassphraseRequiredActionBarActivity to ScreenLockActionBarActivity, amongst other things

* Cleanup

* Tiny fix

* Further cleanup

* WIP filename fix

* Fixed GIF saving amongst other things

* Cleanup for PR

* Fixed overlooked drawable ID change

* Cleanup

* PR feedback

* PR feedback

* PR feedback

* PR feedback

* PR feedback

* Fix startup crash & successful unlock drawable

* Adjusted fileprovider back to previous name to keep inline with avatar and share logs file providers

* Cleaned up ShareActivity null-checks via lateinits

* Fixed up ScreenLockActivity so we don't get stuck & inform user of system-level biometric lockouts

* Fixed ShareActivity.onCreate to match OG behaviour

* Added filename handling for video files

* All working - commit before cleanup

* Cleaned up

* Addressed PR feedback regarding biometric unlock

* Re-fixed external share filenames following Media class adjustment today

* Cleanup

* Fixed Giphy GIF filenames

* PR cleanup

* PR feedback

* Added comment

* Reverted onBackPressedDispatcher change

* Added voice message filename generation method to FilenameUtils

* Push before refactor

* WIP

* Streamline filename creation

* Cleanup

* Enforce non-null status on extracted filename

* Adjusted Attachments to force filenames & removed reliance on Uri filename extraction

* End of day push

* Added synthesized filename creation for pre-existing voice messages that lack a filename

* Cleanup and refactor mechanism for legacy voice message filename synthesis

* Remove unnecessary call to getFilenameFromUri if we can extract the filename from the attachment

* Added filename synthesis on input from legacy Session Android clients that provide null filenames

* Added some additional mime-types to our incoming 'fromProto' filename generation - should be very comprehensive now

* Leaving logic on the app side

Removed logic from libsession
Sanitising file names before saving them to storage
Made sure we don't displa a date when getting filename from Slide otherwise it'll keep changing

* Cleaned up

* Using the URI's timestamp when possible

---------

Co-authored-by: alansley <aclansley@gmail.com>
Co-authored-by: ThomasSession <thomas.r@getsession.org>
3 months ago
SessionHero01 03b5b40b93
[SES-3153] - Fix crash when admin deletes our attachment (#883)
* Fix crash when admin deletes an attachment

* Fix wrong column used in query
3 months ago
SessionHero01 9ba8e11b66
Add a group scope to limit group work concurrency (#881) 3 months ago
SessionHero01 388a7a2f8c
Clear group messages whenever it's destroyed (#882) 3 months ago
SessionHero01 2a3db7d3f9
Merge pull request #879 from session-foundation/merge-groups-to-dev
Merge latest changes to groups back to dev
3 months ago
SessionHero01 cc769c0c30
Merge remote-tracking branch 'origin/dev' into merge-groups-to-dev
# Conflicts:
#	app/src/main/java/org/thoughtcrime/securesms/conversation/v2/messages/VisibleMessageView.kt
#	app/src/main/java/org/thoughtcrime/securesms/groups/compose/EditGroupScreen.kt
3 months ago
SessionHero01 c04e4559b3
Integrate the group member status change (#874) 3 months ago
SessionHero01 46653d9229
Added progress indicator for group editing (#875)
* Added progress indicator for group editing

* Max size on AndroidView and remove background, add semantics

* More update

* Reuse LoadingDialog

* Comment
3 months ago
SessionHero01 6b7afb8969
Warning as a dynamic color (#866) (#877)
Co-authored-by: ThomasSession <thomas.r@getsession.org>
3 months ago
SessionHero01 d869c76626
Delete a group directly if it's already destroyed (#876) 3 months ago
SessionHero01 026f6efa65
Fix OpenGroup blocking default dispatcher (#873) 3 months ago
SessionHero01 b1167d0785
Updated group min banner background color (#872) 3 months ago
ThomasSession 578d89a574
Feature/lucide icons pt4 (#869)
* info icon (ic_info)

* icon video off (ic_video_off)

* emoji fallback icon (ic_square_x)

* expand icon (ic_maximize_e)

* default profile icon and video swap icon

* missed call icon

* chevron up and down

* icons for image edit screen and emoji stickers

* Giphy screen icons + reworked search bar

* removed unused icons
3 months ago
SessionHero01 d001f8fb8a
Merge branch 'groups-rebuild' into release/1.21.0 3 months ago
ThomasSession 35e14c5628
Warning as a dynamic color (#866) 3 months ago
ThomasSession d1d8441d79
Fixing the position of the reply icon (#865) 3 months ago
ThomasSession 2c4a6f04c8
Feature/lucide icons pt3 (#864)
* Starting to import Lucide icons and clean up

* Removing unused icons

* Lucide icons + removing unsued stuff

Removed the whole EMoji/MediaKeyboard classes as they didn't seem used

* More Lucide icons + ui tweaks + clean up

* comment

* Wrong tinting

* delete icon

* More icons

* check icons

* edit icon (ic_pencil)

* edit icon

* Search icon (ic_search)

* settings icons (ic_settings)

* back icon (ic_chevron_left)

* icon forward arrow (ic_chevron_right)

* icon circle dots (ic_circle_dots_custom)

* icon read (ic_eye)

* icon disappearing messages (ic_clock_x)

* refresh icon (ic_refresh_cw)

* globe icon

* message icon (ic_message_square)

* icon message request (ic_message_square_warning)

* group and invite icons (ic_users_group_custom, ic_user_round_plus))

* icons: lock, unlock, audio/notification (ic_lock_keyhole, ic_lock_keyhole_open, ic_volume_2, ic_volume_off )

* icon mute / mic off (ic_mic_off)

* icon appearance, recovery (ic_paintbrush_vertical, ic_recovery_password_custom)

* icons: help, help circle, qr code

* icon block/ban

* close icon (ic_x)

* pin/unpin icons

* switch camera icon (ic_switch_camera)

* warning icon (ic_triangle_alert)

* phone icons

* share icon  + clean up unused files

* mark as read icon + clean up

* default video placeholder + clean up

Removed the caption icon from the media rail
Cleaned up logic for thumbnail error and placeholder

* Clean up
3 months ago
AL-Session b2e8b1ccc5
Set the recovery phrase as being viewed when the user has visited the… (#846)
* Set the recovery phrase as being viewed when the user has visited the RecoveryPasswordActivity

* Fix scenario whereby permanently hiding the recovery phrase via the banner does not

---------

Co-authored-by: alansley <aclansley@gmail.com>
4 months ago
alansley 5e43dd6ef7 Merge branch 'master' into dev 4 months ago
ThomasSession c36f3305ae
Feature/lucide icons pt2 (#863)
* Starting to import Lucide icons and clean up

* Removing unused icons

* Lucide icons + removing unsued stuff

Removed the whole EMoji/MediaKeyboard classes as they didn't seem used

* More Lucide icons + ui tweaks + clean up

* comment

* Wrong tinting

* delete icon

* More icons

* check icons

* edit icon (ic_pencil)

* edit icon

* Search icon (ic_search)

* settings icons (ic_settings)

* back icon (ic_chevron_left)

* icon forward arrow (ic_chevron_right)

* icon circle dots (ic_circle_dots_custom)

* icon read (ic_eye)

* icon disappearing messages (ic_clock_x)

* refresh icon (ic_refresh_cw)

* globe icon

* message icon (ic_message_square)

* icon message request (ic_message_square_warning)

* group and invite icons (ic_users_group_custom, ic_user_round_plus))

* icons: lock, unlock, audio/notification (ic_lock_keyhole, ic_lock_keyhole_open, ic_volume_2, ic_volume_off )

* icon mute / mic off (ic_mic_off)

* icon appearance, recovery (ic_paintbrush_vertical, ic_recovery_password_custom)

* icons: help, help circle, qr code

* icon block/ban
4 months ago
ThomasSession a2e194e2d3
Feature/lucide icons (#827)
* Starting to import Lucide icons and clean up

* Removing unused icons

* Lucide icons + removing unsued stuff

Removed the whole EMoji/MediaKeyboard classes as they didn't seem used

* More Lucide icons + ui tweaks + clean up

* comment

* Wrong tinting

* delete icon

* More icons

* check icons
4 months ago
AL-Session f1dd0a78fa
Fix/make file attachment message visible (#854)
* WIP

* WIP

* Adjusted view_visible_message_content to show any msg w/ a document attachment above it

* Cleanup

* Nudge to trigger CI build

* Adjusted view layout to display any text accompanying an audio file

---------

Co-authored-by: alansley <aclansley@gmail.com>
4 months ago
SessionHero01 8cc85337dc
SES-3053 Send only the first 32 bytes of admin key as promotion message (#860) 4 months ago
stfsession 0876f872c1
[Automated] Update translations from Crowdin (#859)
Co-authored-by: mpretty-cyro <15862619+mpretty-cyro@users.noreply.github.com>
4 months ago
SessionHero01 c777f069bc
Do not reuse placeholder drawable (#858) 4 months ago
SessionHero01 72771142ab
Use mark_kicked when kicked (#857) 4 months ago