Commit Graph

2780 Commits

Author SHA1 Message Date
ThomasSession
68750e6146
Making sure deleted control messages leave nothing behind (#1693)
* Making sure deleted control messages leave nothing behind

* More control messages check
2024-10-14 18:49:33 +11:00
ThomasSession
54ef260aa9
Feature/standardised message deletion (#1685)
* Initial commit with high level structure for new message deletion logic

* Adding admin logic

* New dialog styles

* Matching existing dialog closer to new designs

* Using the theme attribute danger instead of a hardcoded colour

* Using classes for the dialogs

Also cleaned up older references to align with newer look

* Adding cancel handling

Cleaning unused code

* Handling local deletion with batch message deletion

* Reusing the 'delete locally'

* Delete on device should "marl the message as deleted", not remove it from the db directly

* Displaying "marked as deleted" messages

Split the `BASE_DELETED_TYPE` into two types:
BASE_DELETED_OUTGOING_TYPE and BASE_DELETED_INCOMING_TYPE
so we can differentiate them visually.

* Proper handling of merged code

* Removed temp bg color

* Making sure the deleted message view is visible

* Renaming functions for clarity

* Adding the ability to customise the text for the deleted control messages

* Removing code that was added back from merging dev back in

* Using the updated strings

* Toast confirmation on 'delete locally'

* Recreating xml dialogs in Compose and moved logic in VM

* Removing hardcoded strings

* Updated message deletion logic

Still need to finalise "note to self" and "legacy groups"

* Deletion logic rework

Moving away from promises

* More deletion logic

Hndling unsend request retrieval as per figma docs

* Making sure multi-select works as expectec

* Multi message handling

Sharing admin logic

* Deleting reactions when deleting a message

* Deleting reactions when deleting a message

* Grabbing server hash from notification data

* Fixed unit tests

* Handling deletion od "marked as deleted" messages

* Handling Control Messages longpress and deletion

* Back up handling of no map data for huawei notifications

Also rethemed the send buttona dn home plus button to have better ax contrast by standardising the colour displayed on the accent color to be the same as the one on the sent messages

* Removed test line

* Reworking the deletion dialogs

We removed the 'delete locally' dialog, instead we show the 'delete for everyone' with the second option disabled

* Outgoing messages can all be marked as 'delete for everyone'

Cleaned up invisible copy button on black bgs

* PR feedback

* Updated huawei file and tested notifications

* Fixed SES-2802

Only force the priority to visible when going from not approved to approved

* Syncing state diaplays as sent

Syncing happens in the bg so the user doesn't need to know of it hence the status can display as "Sent" during the syncing phase.
Resyncing, in case it happens, can display the "Syncing" status as it would happen after a syncing error.

* Latest strings

---------

Co-authored-by: ThomasArtProcessors <71994342+ThomasArtProcessors@users.noreply.github.com>
2024-10-14 15:33:11 +11:00
SessionHero01
007fda6bae
Merge remote-tracking branch 'origin/dev' into closed_groups
# Conflicts:
#	app/src/main/java/org/thoughtcrime/securesms/database/ConfigDatabase.kt
2024-10-14 14:37:46 +11:00
SessionHero01
222df30a18
Fix compilation issues 2024-10-14 14:37:13 +11:00
SessionHero01
ecfa5d346a
Close cursor in retrieveConfigLastUpdateTimestamp (#1692) 2024-10-14 14:24:48 +11:00
SessionHero01
1f9b00bc0a
Merge remote-tracking branch 'origin/dev' into closed_groups
# Conflicts:
#	app/src/main/java/org/thoughtcrime/securesms/conversation/v2/dialogs/DownloadDialog.kt
#	libsession/src/main/java/org/session/libsession/messaging/jobs/BatchMessageReceiveJob.kt
#	libsession/src/main/java/org/session/libsession/utilities/ConfigFactoryProtocol.kt
2024-10-14 11:41:29 +11:00
ThomasSession
ed1bddd10b
Merge pull request #1691 from oxen-io/fix/ses-2804-message-reappearing-account-restored
Making sure restored accounts do not display deleted messages
2024-10-14 10:59:48 +11:00
ThomasSession
bf6157997a Making sure restored accounts do not display deleted messages
When getting messages we check if the contact was marked as hidden and compare the timestamps of both the message and the config object to check whether to re-show the thread or not.
2024-10-14 10:42:10 +11:00
ThomasSession
9ffaed51b2 v1.20.2 2024-10-11 15:37:16 +11:00
ThomasSession
92f66b4534 Fixing store crash by removing non required spannable 2024-10-11 11:53:14 +11:00
SessionHero01
7175a3121c
Merge remote-tracking branch 'origin/dev' into closed_groups
# Conflicts:
#	app/src/main/java/org/thoughtcrime/securesms/database/Storage.kt
2024-10-10 13:56:05 +11:00
ThomasSession
ce968cc5f8 Only force a contact to visible if the approval goes from 'not approved' to 'approved' 2024-10-10 13:30:09 +11:00
SessionHero01
a8839af112
Config update details and config syncing issue 2024-10-09 10:32:05 +11:00
SessionHero01
db8784f0db
Config lock contention and loading timeout issue 2024-10-08 15:53:22 +11:00
SessionHero01
999ce6e413
Fixed unit tests 2024-10-08 10:41:50 +11:00
SessionHero01
4bf2c87fdd
Incorrect imports 2024-10-08 10:29:01 +11:00
SessionHero01
e937e2b354
Merge remote-tracking branch 'origin/dev' into closed_groups
# Conflicts:
#	app/src/main/java/org/thoughtcrime/securesms/conversation/v2/ConversationActivityV2.kt
#	app/src/main/java/org/thoughtcrime/securesms/conversation/v2/dialogs/DownloadDialog.kt
#	app/src/main/java/org/thoughtcrime/securesms/home/HomeActivity.kt
#	app/src/main/java/org/thoughtcrime/securesms/recoverypassword/RecoveryPasswordActivity.kt
2024-10-08 10:26:11 +11:00
SessionHero01
962df473b6
Fixed crashes leaving un-polled groups 2024-10-08 10:21:59 +11:00
SessionHero01
71009c373b
Fix up more DI 2024-10-07 17:14:18 +11:00
ThomasSession
2523975462
More DI fixes 2024-10-07 16:55:11 +11:00
SessionHero01
7f008b5f1b
Delete group thread upon config changes 2024-10-07 16:00:31 +11:00
SessionHero01
4998cebfd3
Tidy up dependency injection 2024-10-07 15:53:51 +11:00
SessionHero01
8c9dfdf5cd
Move config sync task into dedicated class 2024-10-07 15:45:36 +11:00
SessionHero01
79db7bdc5c
Tidy up storage 2024-10-07 15:45:18 +11:00
SessionHero01
d2a4f12c29
Config uploader 2024-10-07 15:05:43 +11:00
ThomasSession
c095427835 Build process update
Cleaned up the variant outputs for the huawei build
Added local signing configs
Made sure the output names were formatted properly
2024-10-07 11:59:57 +11:00
ThomasSession
d257a1a072 Moving recovery password dialogs to compose for QA 2024-10-04 14:20:55 +10:00
ThomasSession
390757fe50 Updating QA tags for dialogs as per the QA Team's instructions 2024-10-04 13:18:45 +10:00
ThomasSession
8fec296c11 Fixing Crashes 2024-10-04 12:50:49 +10:00
ThomasSession
b237faa21d Fixing ANRs 2024-10-04 12:19:39 +10:00
SessionHero01
80344f0ffd
Incorrect timestamp 2024-10-04 11:08:05 +10:00
SessionHero01
8dd2f364ce
Group keys and message response improvement 2024-10-04 10:20:16 +10:00
SessionHero01
08ee07f5c5
Send message improvement 2024-10-03 15:29:56 +10:00
SessionHero01
6ab4ff2e28
Compilation errors after merge 2024-10-03 14:40:29 +10:00
SessionHero01
677cd6a7cf
Merge remote-tracking branch 'origin/dev' into closed_groups
# Conflicts:
#	app/src/main/java/org/thoughtcrime/securesms/ApplicationContext.java
#	app/src/main/java/org/thoughtcrime/securesms/conversation/ConversationActionBarView.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/menus/ConversationMenuHelper.kt
#	app/src/main/java/org/thoughtcrime/securesms/conversation/v2/messages/ControlMessageView.kt
#	app/src/main/java/org/thoughtcrime/securesms/database/Storage.kt
#	app/src/main/java/org/thoughtcrime/securesms/database/model/ThreadRecord.java
#	app/src/main/java/org/thoughtcrime/securesms/messagerequests/MessageRequestsActivity.kt
#	app/src/main/java/org/thoughtcrime/securesms/ui/components/Text.kt
2024-10-03 14:37:08 +10:00
SessionHero01
49b9ec9914
Expiring message handling for groups 2024-10-03 14:23:41 +10:00
SessionHero01
a5c89d8d5a
Clock management and kicked 2024-10-03 12:15:51 +10:00
SessionHero01
1f5fde0d9a
Various issues 2024-10-02 15:17:13 +10:00
SessionHero01
3faae5ddbe
Getting rid of .get call on promise 2024-10-02 11:25:37 +10:00
ThomasSession
3d42a04823 Fixing property name 2024-10-02 10:16:10 +10:00
SessionHero01
45a66d0eea
Config revamp 2024-10-01 17:20:50 +10:00
ThomasSession
29c6e6b081 Adding back long press fix 2024-10-01 15:36:49 +10:00
ThomasSession
c956b2050c Making sure we don't pass in a null recipient name 2024-09-30 13:32:08 +10:00
SessionHero01
b9f5f940a1
Put back invite contacts job 2024-09-26 17:23:54 +10:00
SessionHero01
771d63e902
Config revamp WIP 2024-09-26 15:43:45 +10:00
SessionHero01
b13b7e647f
Handle message deletion 2024-09-25 11:00:57 +10:00
ThomasSession
b74d35e216
Merge pull request #1679 from oxen-io/release/1.20.0
Release/1.20.0
2024-09-25 09:31:12 +10:00
SessionHero01
57c95ea7d6
Set name 2024-09-24 17:08:37 +10:00
SessionHero01
5c380bdbdf
Fixed compilation errors 2024-09-24 16:34:33 +10:00
SessionHero01
8c1eb1550b
Improvement 2024-09-24 16:26:29 +10:00
ThomasSession
0447a16976 Fixed import for Huawei builds 2024-09-24 13:38:55 +10:00
SessionHero01
7e1a0ade79
Fix crashes when removing spaces in mention texts 2024-09-24 11:59:55 +10:00
ThomasSession
da83df2206 Fixing scroll when getting new messages 2024-09-23 17:01:19 +10:00
ThomasSession
6f32978cc7 Setting the appropriate color for RTL assets 2024-09-23 15:09:05 +10:00
ThomasSession
a32f8d27c0 Latest strings and RTL assets 2024-09-20 16:10:33 +10:00
ThomasSession
3dfbd0892d Cleaned up ItemButton to work in both its variations 2024-09-20 10:29:11 +10:00
ThomasSession
1ff8ea0fc8 SES-1714 - SES-1715
Making sure an approved message request sets the contact as visible. They could have been set to hidden if the contact had previously sent another message request which was then declined.
Upon sending another one we need to make sure the contact is set to visible once that request is approved.
2024-09-20 09:54:08 +10:00
ThomasSession
89a854e8d7
Merge pull request #1672 from bemusementpark/ItemButton
Fix ItemButton padding for downstate
2024-09-20 09:50:34 +10:00
ThomasSession
6ca34b2926
Merge pull request #1670 from oxen-io/release/1.20.0
Release/1.20.0
2024-09-20 09:48:17 +10:00
bemusementpark
73b0088aea Fix ItemButton padding for downstate 2024-09-19 22:11:58 +09:30
ThomasSession
d60db11585 Have to remove translations for now 2024-09-18 11:59:06 +10:00
SessionHero01
80e3e563ce
Extract login into GroupManagerV2 2024-09-18 10:46:49 +10:00
SessionHero01
06095ceeab
[SES-2733] Preventing files from being selected in media overview 2024-09-17 11:18:53 +10:00
ThomasSession
01a702ba9c Using our updated qaTag instead of testTag 2024-09-17 10:54:01 +10:00
ThomasSession
d0537c1e8c Cleaning up thumbnail view bgs 2024-09-16 16:23:53 +10:00
ThomasSession
d0d7626db4 Moving the heavy lifting code in a coroutine to help with ANRs 2024-09-16 14:47:58 +10:00
ThomasSession
d044f12d3f
Merge pull request #1669 from oxen-io/feature/dynamic-community-rights
Listening to changes in community write access
2024-09-16 10:09:58 +10:00
ThomasSession
c3cf2b8d03 Updated tests 2024-09-16 09:59:34 +10:00
ThomasSession
7b7c053d18 Using the right button for recovery banner 2024-09-16 09:45:31 +10:00
ThomasSession
1f6a1b13b2 Using groupId as the key instead of the server alone 2024-09-16 09:35:19 +10:00
ThomasSession
915c617364 More dialog platform consistency 2024-09-16 09:30:55 +10:00
ThomasSession
0d158b62e4 Cleaning up modals for platform consistency 2024-09-16 09:29:19 +10:00
ThomasSession
cc63fa3eca Removing uneeded line in the "Report a bug" help category in settings 2024-09-16 09:15:23 +10:00
ThomasSession
e80f463bd1 Listening to changes in community write access
In order to allow the showing and hiding of the input bar dynamically
2024-09-16 09:03:17 +10:00
ThomasSession
f2705720a7 SES-2722 & SES-2718
Fixing strings issues
Also removed all translations for now as the update was full of errors. they will be fixed and added back soon.
2024-09-13 16:13:27 +10:00
ThomasSession
74787f949c Making sure camera perm updates in QR and new string for rationale dialog 2024-09-13 11:49:12 +10:00
ThomasSession
bdbc2c1e50 SES-348 Adding a char limit to the input field in conversations 2024-09-13 10:51:16 +10:00
SessionHero01
32f95337d5
Delete conversation on home screen 2024-09-12 16:58:40 +10:00
ThomasSession
b9f06c34e7 Deleting tests no longer needed 2024-09-12 16:45:12 +10:00
SessionHero01
dc1075e0c7
Edit menu for groups 2024-09-12 16:41:51 +10:00
SessionHero01
841bc69c3c
Remove conversation settings and added back group operation 2024-09-12 16:40:19 +10:00
ThomasSession
304679dac6 Strings update
Updating strings
Removed non crowdin strings
Removed the locale wrapper as we do not support in app language changes
2024-09-12 16:29:27 +10:00
SessionHero01
cc64f461ef
Fix up compilation issues 2024-09-12 10:51:59 +10:00
SessionHero01
952479a564
Merge remote-tracking branch 'origin/dev' into closed_groups
# Conflicts:
#	gradle.properties
2024-09-12 09:39:26 +10:00
ThomasSession
d30ff252ab SES-2715 Calls toggle and Mic permission
Making sure we tell the user when microphone permissions are denied permanently when toggling calls on.
2024-09-12 09:38:24 +10:00
ThomasSession
f0c8ec81e5 Using the latest compose compiler 2024-09-12 09:15:36 +10:00
ThomasSession
607dae2450 Removing hardcoded reference to material3 2024-09-11 17:10:48 +10:00
ThomasSession
d897a83cd5 Tweaking debug menu 2024-09-11 16:57:09 +10:00
ThomasSession
59eed8835b Updating the app to using Compose 1.7.1 via the latest BOM 2024-09-11 16:34:06 +10:00
ThomasSession
ad944e3398 Avatar dialog shows a red "remove" button 2024-09-11 14:35:21 +10:00
SessionHero01
b2c9cc1d94
Merge remote-tracking branch 'origin/dev' into closed_groups
# Conflicts:
#	.drone.jsonnet
#	app/src/main/java/org/thoughtcrime/securesms/conversation/disappearingmessages/DisappearingMessagesViewModel.kt
#	app/src/main/java/org/thoughtcrime/securesms/conversation/v2/menus/ConversationMenuHelper.kt
#	app/src/main/java/org/thoughtcrime/securesms/database/Storage.kt
#	app/src/main/java/org/thoughtcrime/securesms/database/model/ThreadRecord.java
#	app/src/main/java/org/thoughtcrime/securesms/home/ConversationOptionsBottomSheet.kt
#	app/src/main/java/org/thoughtcrime/securesms/home/HomeActivity.kt
#	app/src/main/java/org/thoughtcrime/securesms/preferences/NotificationsPreferenceFragment.kt
#	app/src/main/java/org/thoughtcrime/securesms/preferences/widgets/SignalListPreference.java
#	app/src/main/java/org/thoughtcrime/securesms/repository/ConversationRepository.kt
#	app/src/main/java/org/thoughtcrime/securesms/ui/Components.kt
#	app/src/main/java/org/thoughtcrime/securesms/ui/components/QR.kt
#	libsession/src/main/java/org/session/libsession/messaging/sending_receiving/ReceivedMessageHandler.kt
#	libsession/src/main/java/org/session/libsession/messaging/utilities/UpdateMessageBuilder.kt
2024-09-11 14:24:48 +10:00
ThomasSession
0218bf9dc3 Merge branch 'release/1.20.0' of https://github.com/oxen-io/session-android into release/1.20.0 2024-09-11 14:24:12 +10:00
ThomasSession
4cb9372d0f SES-2713 - band dialog strings
Also tweaking xml dialog's margin so they look like Compose's material dialogs
2024-09-11 14:24:02 +10:00
SessionHero01
93af215d4e
SES-2696 - Fix disappearing message 2024-09-11 13:44:30 +10:00
ThomasSession
0fd801accb SES-2702 - making sure we hook the permission results everywhere 2024-09-11 10:56:38 +10:00
ThomasSession
b452a17b42
Merge pull request #1661 from oxen-io/feature/ses-2655
SES-2655 standardise thread body
2024-09-11 08:57:15 +10:00
ThomasSession
3a565a15ea SES-2655 standardise thread body 2024-09-10 16:52:19 +10:00
ThomasSession
a2c4d6fb46 Fixing mute 2024-09-10 16:32:40 +10:00
ThomasSession
c68dc4f12f Fixing up the muting as you can't add more than the max int.... 2024-09-10 10:33:14 +10:00
ThomasSession
e6c224bec4 WRITE_EXTERNAL_STORAGE relates to sdk <= 28 2024-09-10 09:24:32 +10:00