Commit Graph

1101 Commits (3ff39dc0dcae9af5d496d08a05a7bd5afe23e761)

Author SHA1 Message Date
stfsession 5f3b8e4ba8
[Automated] Update translations from Crowdin (#960)
Co-authored-by: mpretty-cyro <15862619+mpretty-cyro@users.noreply.github.com>
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
SessionHero01 0cf6e22cca
Merge remote-tracking branch 'origin/release/1.21.0' into bring-1.21.0
# Conflicts:
#	app/src/main/java/org/thoughtcrime/securesms/MediaPreviewActivity.java
#	app/src/main/java/org/thoughtcrime/securesms/conversation/v2/MessageDetailActivity.kt
#	app/src/main/java/org/thoughtcrime/securesms/conversation/v2/MessageDetailsViewModel.kt
#	app/src/main/java/org/thoughtcrime/securesms/conversation/v2/messages/QuoteView.kt
#	app/src/main/java/org/thoughtcrime/securesms/conversation/v2/messages/VisibleMessageView.kt
#	app/src/main/java/org/thoughtcrime/securesms/mms/Slide.kt
2 months ago
SessionHero01 f3b8dd5d37
Do not send control message for re-invite/re-promote (#951) 2 months ago
ThomasSession fb0dc85bff Proper names for visible message view 2 months ago
ThomasSession 2a7b08fe64
Fix/ses 3326 unpin legacy groups (#949)
* SES-3326 ability to unpin legacy group post deprecation

* Reusing naming logic for contacts and recipients

Should fix SES-3323 and SES-3320
2 months ago
ThomasSession 79858a2336
Relying on the flag for voice notes and ignoring empty file names as that legacy logic is too outdated now (#947) 2 months ago
SessionHero01 87cd979473
[SES-3314] - Prevent replay attacks (#945) 2 months ago
ThomasSession 1cb39c9b5f
QA fixes for Groups V2 (#946)
* SES-3303 - proper URL for groups banner

* SES-3301 - fixing display of legacy group control mesasges

* SES-3304 - No admin state dialogs while DEPRECATED

Updated debug menu with confirm dialog when changing deprecation state

* SES-3307 fixing legacy user view

* SES-3308 - not overwritting the last character in group banners
2 months ago
SessionHero01 8d8876df59
[SES-3300] - More place to hide message/convo actions based on deprecated state (#942) 2 months ago
ThomasSession 1b2eb4c2f9
Making sure we get all attachments except voice notes (#940) 2 months ago
SessionHero01 2ebe469c49
Fix group member name not showing (#939) 2 months ago
SessionHero01 9755d252a6
Make sure to skip handling legacy group messages post deprecation (#932)
* Make sure to skip handling legacy group messages post deprecation

* Renamed
2 months ago
SessionHero01 68061e1f78
Fix incorrect deprecated state first time accessing it (#931) 2 months ago
stfsession 855c985630
[Automated] Update translations from Crowdin (#929)
Co-authored-by: mpretty-cyro <15862619+mpretty-cyro@users.noreply.github.com>
2 months ago
stfsession 16a98b837e
[Automated] Update translations from Crowdin (#929)
Co-authored-by: mpretty-cyro <15862619+mpretty-cyro@users.noreply.github.com>
2 months ago
SessionHero01 3d4e690754
Merge remote-tracking branch 'origin/release/1.21.0' into merge-1.21.0 2 months ago
SessionHero01 ca7eecca39
[SES-3251] - Add additional deprecation state and bring back legacy group creation (#928)
* Resurrect legacy group creation

* Added debug options

* Fixed tests

* Tidy up

* Remove constant
2 months ago
SessionHero01 1fbf60da79
Merge remote-tracking branch 'origin/release/1.21.0' into merge-1.21.0
# Conflicts:
#	app/src/main/java/org/thoughtcrime/securesms/conversation/v2/ConversationActivityV2.kt
#	app/src/main/java/org/thoughtcrime/securesms/conversation/v2/ConversationReactionOverlay.kt
#	app/src/main/java/org/thoughtcrime/securesms/conversation/v2/messages/VisibleMessageView.kt
2 months ago
SessionHero01 1215d227a8
Fix a clock drift when the device is in deep sleep (#926) 2 months ago
alansley 899fb3d767 Revert "Last send message to blinded recipient identified & code cleaned up"
This reverts commit 85c58bd330. Sorry, I thought I was on my branch.
2 months ago
alansley 85c58bd330 Last send message to blinded recipient identified & code cleaned up 2 months ago
SessionHero01 6ad806afb7
[SES-3251] - Legacy group migration - Part I (#916) 2 months ago
stfsession cc8ecc4c51
[Automated] Update translations from Crowdin (#915)
Co-authored-by: Bilb <1544279+Bilb@users.noreply.github.com>
2 months ago
stfsession 6ded7e1c9f
[Automated] Update translations from Crowdin (#915)
Co-authored-by: Bilb <1544279+Bilb@users.noreply.github.com>
2 months ago
SessionHero01 0956d65808
Using member names in the control messages wherever possible (#914) 2 months ago
SessionHero01 20fc0a2d2d
Merge remote-tracking branch 'origin/release/1.21.0' into merge-release-1.21.0 2 months ago
SessionHero01 f8a6ad05b0
[SES-3200] - Offline control message improvement (#912) 2 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
2 months ago
SessionHero01 e5e00c4548
Onion paths as a StateFlow (#901) 2 months ago
stfsession ac6bb541da
[Automated] Update translations from Crowdin (#862)
Co-authored-by: Bilb <1544279+Bilb@users.noreply.github.com>
2 months ago
stfsession c05aca33be
[Automated] Update translations from Crowdin (#862)
Co-authored-by: Bilb <1544279+Bilb@users.noreply.github.com>
2 months ago
SessionHero01 c4eee78c86
Fix incorrect version of "you were removed" used (#903) 2 months ago
SessionHero01 c9c2ccb044
[SES-2930] - Show the correct toast message when invitation fails (#900)
* Universal message handling for failing to send invitation

* Comment
2 months ago
SessionHero01 7b1a25d0ef
[SES-2960] - Control messages for leaving groups (#898)
* Removed the "overridenSnippet" facility

* Add missing control messages
2 months ago
SessionHero01 139dd2b307
[SES-3183] - Do not accept 1-to-1 disappearing messages in a group (#895) 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 681ac32198
Reset last hash on promotion (#885) 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 9ba8e11b66
Add a group scope to limit group work concurrency (#881) 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 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
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
ThomasSession 35e14c5628
Warning as a dynamic color (#866) 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