Commit Graph

17 Commits

Author SHA1 Message Date
SessionHero01
5b26912f42
Fixed huawei push notification 2024-10-25 10:48:22 +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
andrew
550955f530 Add huawei strings 2023-08-16 20:54:07 +09:30
andrew
1d9fb13809 Move plugin to huawei flavor 2023-08-11 19:29:31 +09:30
andrew
9899b37f43 Move huawei manifest metadata to huawei flavor 2023-08-11 17:45:56 +09:30
andrew
e60c05cee0 Fix Huawei message parsing 2023-08-09 12:18:22 +09:30
andrew
5a5b2f593f Refactor to accept Huawei token from getToken() and/or onNewToken() 2023-08-09 10:08:42 +09:30
andrew
bcf925c132 Cleanup 2023-08-06 22:22:39 +09:30
andrew
a27f81db30 Fix Huawei push notifications 2023-08-04 13:36:09 +09:30
andrew
cc6f880665 ... 2023-08-03 14:14:55 +09:30
andrew
41d24ef2c3 ... 2023-08-02 14:55:31 +09:30
andrew
d1e22ca369 Fix 2023-07-27 13:53:33 +09:30
andrew
7be1f092f9 More Huawei stuff 2023-07-26 22:09:24 +09:30
andrew
d3ea4e2e30 Fix 2023-07-26 14:36:06 +09:30
Andrew
55216875ac Connect Huawei push notifications 2023-07-26 10:48:20 +09:30
andrew
34990b13d3 ... 2023-07-25 14:49:41 +09:30
andrew
01e9d15872 Add Huawei flavor 2023-07-25 11:38:06 +09:30