Commit Graph

313 Commits

Author SHA1 Message Date
Benoit Marty
775cb89993 Fix image not rendering after clearing cache. 2024-06-24 13:58:15 +02:00
ElementBot
072daa080a Sync Strings (#3077)
Co-authored-by: bmarty <3940906+bmarty@users.noreply.github.com>
2024-06-24 09:29:35 +02:00
Benoit Marty
83bfa3d9fc Update test after merging develop. 2024-06-18 10:33:07 +02:00
Benoit Marty
1d5970adbc Merge branch 'develop' into feature/bma/fixFdroidNotification 2024-06-18 10:28:04 +02:00
Jorge Martin Espinosa
feef0f6976 Add full screen intent permissions banner (#3024)
* Add full screen intent permissions banner, creating `:libraries:fullscreenintent` modules.
* Add it to notification settings too:
    - Create `libraries:fullscreenintent` modules for the permission presenter and associated data.
    - Add the presenter and states to `NotificationSettingsPresenter` and `NotificationSettingsView`.
* Use the right API to check for full screen intent permissions.
- Use the right package name for `:libraries:permission` contents.
* Fix broken tests (flaky?)
* Ignore coverage verification for fake and small presenters

---------

Co-authored-by: ElementBot <benoitm+elementbot@element.io>
2024-06-18 07:41:10 +00:00
Benoit Marty
622cc35616 Store the first provider even if no distributor is available, else error in troubleshoot test will not be accurate.
Also when registering for the first time, pick the fist available provider with at least one distributor.
2024-06-17 17:36:39 +02:00
Benoit Marty
90eeb6cdb1 Update PushProvider API, remove isAvailable(), but instead rely on getDistributors() to eventually return an empty list of Distributors. 2024-06-17 17:25:13 +02:00
Benoit Marty
22df215bac Add test on ignoreRegistrationError and setIgnoreRegistrationError 2024-06-17 14:48:52 +02:00
Benoit Marty
366d6c017d Add ability to not show the pusher registration again. 2024-06-17 11:38:32 +02:00
Benoit Marty
e6f6e82ce2 Render an error dialog in case registering a pusher fails. 2024-06-17 11:30:23 +02:00
Benoit Marty
3eaf780087 Add test on pusher registration 2024-06-17 11:30:22 +02:00
Benoit Marty
da8285b10e Fix typo in log. 2024-06-17 11:30:20 +02:00
bmarty
7b27ba116d Sync Strings from Localazy 2024-06-17 00:23:40 +00:00
Benoit Marty
84f1737995 Remove TODO. 2024-06-13 18:20:19 +02:00
Benoit Marty
e2aa84804d Merge pull request #3000 from element-hq/sync-localazy
Sync Strings
2024-06-11 15:16:55 +02:00
Benoit Marty
1e3c0f319a Un-deprecate screen_room_retry_send_menu_send_again_action and sync string again. 2024-06-11 14:35:46 +02:00
Jorge Martin Espinosa
cef8302dd0 Notify of ringing call when there's an active call (#3003)
* Add `CallNotificationEventResolver` to be able to force the new ringing notification to be non-ringing given an existing ringing one.
2024-06-10 15:03:06 +00:00
Jorge Martin Espinosa
6f8de0b2c6 Element Call ringing notifications (#2978)
- Add `ActiveCallManager` to handle incoming and ongoing calls.
- Add ringing call notifications with full screen intents and missed call ones as part of the 'conversation' notifications.

---------

Co-authored-by: ElementBot <benoitm+elementbot@element.io>
2024-06-10 11:51:19 +02:00
bmarty
57510316ec Sync Strings from Localazy 2024-06-10 00:17:04 +00:00
Benoit Marty
c973e70b6b Fix formatting issues. 2024-06-05 15:13:04 +02:00
Benoit Marty
625c8aa27e Add test on NotificationBroadcastReceiverHandler 2024-06-05 14:59:51 +02:00
Benoit Marty
96debfd184 Use getStringExtra 2024-06-05 14:59:49 +02:00
Benoit Marty
28d4e276d2 Remove unused actions and fix comment 2024-06-05 14:59:49 +02:00
Benoit Marty
74bb287443 Extract NotificationBroadcastReceiverHandler to its own file 2024-06-05 14:59:49 +02:00
Benoit Marty
dbafc9d4c4 Do not provide the context, but use the StringProvider. 2024-06-05 14:59:48 +02:00
Benoit Marty
0d836ffe96 NotificationBroadcastReceiver now delegate treatment to NotificationBroadcastReceiverHandler to be able to unit test the logic 2024-06-05 14:59:48 +02:00
Benoit Marty
6f12820e0b Let NotificationBroadcastReceiver inject NotificationDrawerManager instead of implementation 2024-06-05 14:59:47 +02:00
Benoit Marty
92bcf9c90e When replying from notification, do not interfere with specialModeEventTimelineItem 2024-06-05 14:59:46 +02:00
Benoit Marty
c547296656 Handle quick reply from notification (still disabled) 2024-06-05 14:59:46 +02:00
bmarty
f501f27d27 Sync Strings from Localazy 2024-06-03 00:24:07 +00:00
Jorge Martin Espinosa
0d82f19cc0 Simplify summary notifications (#2958) 2024-05-31 12:31:09 +02:00
Jorge Martin Espinosa
e6fab7eee2 Fix grouped notifications only displaying the latest message (#2956)
`DefaultActiveNotificationsProvider.getNotificationsForSession(sessionId)` had a broken logic for checking a notification's group and retrieving notifications from the same session.
2024-05-31 10:16:59 +02:00
Benoit Marty
0e4b30e58d Merge pull request #2941 from element-hq/sync-localazy
Sync Strings
2024-05-29 16:27:17 +02:00
bmarty
46b6ae6251 Sync Strings from Localazy 2024-05-29 12:44:57 +00:00
Benoit Marty
d37f59c543 Fix small issue introduced in #2924. 2024-05-29 14:25:57 +02:00
Jorge Martin Espinosa
3d52071c45 Bump Matrix Rust SDK to v0.2.21 and fix conflicts (#2938) 2024-05-29 13:12:44 +02:00
Jorge Martin Espinosa
801f0b955d Notifications: simplify the flow by removing persistence (#2924)
* Notifications: simplify the flow by removing persistence. 
* Bump of minSdk to `24` (Android 7).
* Add migration to remove `notification.bin` file
2024-05-29 08:03:23 +00:00
Benoit Marty
25c20f1734 Set the value of currentDistributorName by reading again the value from the service. 2024-05-28 14:08:20 +02:00
Benoit Marty
9065e9d2eb Merge pull request #2921 from element-hq/sync-localazy
Sync Strings
2024-05-27 15:52:38 +02:00
Benoit Marty
bbb44db297 Translations: pt -> pt-rBR 2024-05-27 14:51:32 +02:00
bmarty
52be64fe73 Sync Strings from Localazy 2024-05-27 00:17:53 +00:00
Benoit Marty
c71656df0c Rename class (code quality) 2024-05-23 14:42:06 +02:00
Benoit Marty
d275ed9150 Add logs on pusher registration 2024-05-23 09:58:29 +02:00
Benoit Marty
4fc3c6f889 Introduce lambdaError instead of using TODO, to handle error when a lambda is invoked and it should not. 2024-05-23 09:12:40 +02:00
Benoit Marty
310c309e1e Change to lambda 2024-05-22 18:16:53 +02:00
Benoit Marty
c0fccae12e Add test on VectorFirebaseMessagingService 2024-05-22 17:57:35 +02:00
Benoit Marty
3866e49822 Add test on DefaultPushHandler 2024-05-22 17:04:54 +02:00
Benoit Marty
839242d7bc Create interface for NotifiableEventResolver 2024-05-22 15:44:50 +02:00
Benoit Marty
41403b7614 Cleanup 2024-05-22 15:29:27 +02:00
Benoit Marty
e0d95f6d98 isCalledExactly(1) -> isCalledOnce() 2024-05-22 15:26:53 +02:00