Commit graph

169 commits

Author SHA1 Message Date
Benoit Marty
a02c5c2b44 Add test for DefaultNotificationDrawerManager 2023-11-27 16:44:47 +01:00
Benoit Marty
b61b45dd0c NotificationEventPersistence is now an interface, to allow in-memory implementation. 2023-11-27 16:44:47 +01:00
Benoit Marty
a09fa1c5ad Add test for NotificationEventPersistence 2023-11-27 16:44:47 +01:00
Benoit Marty
73ebffab2e Add coverage for NotificationBitmapLoader 2023-11-27 16:44:47 +01:00
Benoit Marty
7cb6740dd6 Remove useless try catch. 2023-11-27 16:43:58 +01:00
Benoit Marty
abf1de7f42 Fix issue in RoomGroupMessageCreator 2023-11-27 16:43:58 +01:00
Benoit Marty
435827af28 Add test for RoomGroupMessageCreator 2023-11-27 16:43:58 +01:00
Benoit Marty
5a979e6237 Add test for NotificationCreator 2023-11-27 16:43:58 +01:00
Benoit Marty
1fdf8dad1f Rename NotificationFactory to NotificationCreator to fix the name clash. 2023-11-27 16:43:58 +01:00
Benoit Marty
3b6c92943c Remove dead code. 2023-11-27 16:43:58 +01:00
Benoit Marty
68463c2e0c Remove UnknownMessageType, should be handled by OtherMessageType now. 2023-11-23 20:18:53 +01:00
Benoit Marty
9fe9d88dc8 Small rework code to avoid dead code. 2023-11-23 17:41:28 +01:00
Benoit Marty
ec459165db Add tests for NotifiableEventResolver 2023-11-23 17:36:23 +01:00
Jorge Martin Espinosa
d413aa1ee3
Add plain text representation of messages (#1850)
* Add plain text representation of messages.

This is used in the room list as the last message in a room, in the message summary when a message is selected, in the 'replying to' block, in the 'replied to' block in a message in the timeline, and in notifications.
2023-11-23 08:29:20 +01:00
Benoit Marty
2cb0060f96 Add a View to show the beginning of the timeline (parity with iOS) 2023-11-14 17:31:42 +01:00
Benoit Marty
f073e51a84 Move PushConfig to the appconfig module. 2023-11-14 10:26:16 +01:00
ElementBot
3bf34eae01
Sync Strings (#1789)
Co-authored-by: bmarty <bmarty@users.noreply.github.com>
2023-11-13 12:31:34 +01:00
Marco Romano
c377656354
Show "Voice message" in voice message push notifications (#1705)
Don't show the event body anymore as it's not relevant for voice messages.
2023-10-31 15:27:17 +01:00
Benoit Marty
5954cef442
Merge pull request #1666 from vector-im/feature/bma/mergeFallbackNotification
Display a single notification for unable to decrypt Event received form push (fallback notification)
2023-10-27 17:42:22 +02:00
Marco Romano
a07286ace9
Split VoiceMessageType from AudioMessageType (#1664)
Currently, for compatibility reasons, we implement MSC3245v1 which puts the voice data inside an audio message type. Though at times it seems impractical to deal with a single message type which effectively represents 2 different kinds of messages.

This PR creates a new message type called `VoiceMessageType` which is used whenever we receive an event with `"msgtype": "m.audio"` which also has the `"org.matrix.msc3245.voice": {}` field. This makes it easier to process voice messages as different entities throughout the rest of the codebase.
2023-10-27 16:02:16 +02:00
Benoit Marty
cb0abd4c12 Display a single notification for all the fallback notifications.
When dismissed, dismiss all the fallback notifications in the model.
2023-10-27 14:55:10 +02:00
Benoit Marty
3482452011 Notification: fix issue: clear event only for the matching session.
We do not have multi session so the bug is not visible yet.
2023-10-27 14:41:39 +02:00
renovate[bot]
244c45797f
Update dependency org.matrix.rustcomponents:sdk-android to v0.1.63 (#1619)
* Update dependency org.matrix.rustcomponents:sdk-android to v0.1.63

* Update Element Call integrated APIs

* Take into account the new `MessageType.Other` from the SDK

---------

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: Jorge Martín <jorgem@element.io>
Co-authored-by: Benoit Marty <benoit@matrix.org>
2023-10-20 22:32:59 +02:00
Benoit Marty
510bdd47af Remove AppNameProvider, we have buildMeta now. 2023-10-20 10:41:39 +02:00
Benoit Marty
819576867d Always register the pusher when application starts 2023-10-16 10:50:16 +02:00
Benoit Marty
7c5a41f03d Konsist: no field should have 'm' prefix, and fix new detected issues. 2023-10-10 22:09:57 +02:00
bmarty
cd120b408f Sync Strings from Localazy 2023-10-09 00:09:28 +00:00
Benoit Marty
2a7a66fb18 Emote: format notification 2023-10-05 15:31:10 +02:00
bmarty
7e3b9d8d3b Sync Strings from Localazy 2023-10-02 00:09:47 +00:00
Marco Romano
fc205698c6
Display poll notifications in the notification drawer (#1467)
Display notifications for polls as if they were message events.
2023-09-29 16:57:03 +02:00
Benoit Marty
aefeb01cdd Reduce the number of fallback notification. Only used now when message cannot be decrypted.
Also avoid using `else` in this `when` block.
2023-09-27 10:12:04 +02:00
Benoit Marty
0453ea5904 Localazy sync 2023-09-18 16:42:35 +02:00
bmarty
d2f9b02bbf Sync Strings from Localazy 2023-09-18 00:09:19 +00:00
Benoit Marty
27ed39d095
Merge pull request #1350 from vector-im/feature/bma/duplicateNotif
Investigation of duplicate notification.
2023-09-15 19:31:48 +02:00
Benoit Marty
0d204f5e98 Share tag with other modules. 2023-09-15 17:03:32 +02:00
Benoit Marty
b9317ee2aa Add log tag 2023-09-15 16:43:24 +02:00
Benoit Marty
d3231487aa Log param. 2023-09-15 16:42:04 +02:00
Jorge Martin Espinosa
f88507117b
Element Call SPA integration (#1283)
* Integrate Element Call into EX, being able to open its URLs and handle the call in-app.
* Add custom scheme support with format `element:call?url=...`.
* Update androix.webkit
* Silence the foreground service notification.
- Allow foreground service tap action to re-open the ongoing call.
- Unify notification small icons in different modules using a vector one.

---------

Co-authored-by: ElementBot <benoitm+elementbot@element.io>
2023-09-15 16:39:44 +02:00
Benoit Marty
7d080ea337 Add Timber tags. 2023-09-15 16:01:28 +02:00
Benoit Marty
020839f17e Simplify again the code. 2023-09-15 15:42:55 +02:00
Benoit Marty
9a461f4b74 No need to force DefaultNotificationDrawerManager receiver for this private fun. 2023-09-15 15:42:55 +02:00
Benoit Marty
1c56d95eab Do not render notification if the user has dismiss the notification.
It should not change anything, just avoid doing useless notification rendering.
2023-09-15 15:42:55 +02:00
Benoit Marty
60104822cd Notification: log roomId and eventId 2023-09-15 14:45:46 +02:00
ganfra
b382993cbb Sync Strings from Localazy 2023-09-14 14:38:49 +00:00
David Langley
c3fbac4678 Merge branch 'develop' of https://github.com/vector-im/element-x-android into dla/feature/connect_sdk_to_global_notifications_ui 2023-09-12 16:30:36 +01:00
renovate[bot]
04c82aa1a5
Update core to v1.12.0 (#1242)
* Update core to v1.12.0

* Fixed now nullable `PendingIntent` creation

---------

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: Jorge Martín <jorgem@element.io>
2023-09-12 12:00:29 +02:00
David Langley
a0ac324e3f Implement Notification Settings
- Add UI and logic to inform the user of mismatched notification settings and help them correct it.
- Display a warning when the system notification settings are disabled and a link out to the app settings.
- A toggle to disable notifications for the device
- A screen for editing the group and direct chat notification defaults.
- A toggle for switching on/off atRoom and call notifications.
2023-09-12 01:11:13 +01:00
Benoit Marty
128c4a7b09
SDK 0.1.49: notification decryption is now fully handled by the Rust SDK. (#1231)
* Revert "Ensure the sync is started when receiving a Push, to ensure that the encryption loop is running."

This reverts commit 82f6f358a7.

* Integrate SDK from https://github.com/matrix-org/matrix-rust-sdk/pull/2505

* Enable retryDecryption() on the NotificationClient.

* SDK 0.1.49 - Encryption Sync is enabled by default now, and retryDecryption is the default too.

* Remove feature flag `UseEncryptionSync`

* Fix sample project build

* Exclude `DeveloperSettingsPresenter` from kover verification.

* Add changelog

---------

Co-authored-by: Jorge Martín <jorgem@element.io>
2023-09-06 11:33:36 +02:00
Benoit Marty
82f6f358a7 Ensure the sync is started when receiving a Push, to ensure that the encryption loop is running.
Fixes notification with endecrypted content (#1178)
2023-09-04 12:50:37 +02:00
Benoit Marty
55255735d7
Merge branch 'develop' into feature/bma/dataObject 2023-08-28 10:56:02 +02:00