Commit graph

301 commits

Author SHA1 Message Date
Benoit Marty
69dbb08034
Merge branch 'develop' into feature/bma/fixFdroidNotification 2024-06-18 10:28:04 +02:00
Jorge Martin Espinosa
b741c32e91
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
b4b407a69e 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
f72fc36de8 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
eb07ae2855 Add test on ignoreRegistrationError and setIgnoreRegistrationError 2024-06-17 14:48:52 +02:00
Benoit Marty
64930e4435 Add ability to not show the pusher registration again. 2024-06-17 11:38:32 +02:00
Benoit Marty
725c3838af Render an error dialog in case registering a pusher fails. 2024-06-17 11:30:23 +02:00
Benoit Marty
148177f24e Fix typo in log. 2024-06-17 11:30:20 +02:00
bmarty
9288b90ac6 Sync Strings from Localazy 2024-06-17 00:23:40 +00:00
Benoit Marty
6491405b76 Remove TODO. 2024-06-13 18:20:19 +02:00
Benoit Marty
756905b9cd
Merge pull request #3000 from element-hq/sync-localazy
Sync Strings
2024-06-11 15:16:55 +02:00
Benoit Marty
0fa662175d 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
f07ec61ecc
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
30a1367714
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
f3d286911c Sync Strings from Localazy 2024-06-10 00:17:04 +00:00
Benoit Marty
acefbbc7d8 Fix formatting issues. 2024-06-05 15:13:04 +02:00
Benoit Marty
afe5c33f33 Add test on NotificationBroadcastReceiverHandler 2024-06-05 14:59:51 +02:00
Benoit Marty
4db9b5ee11 Use getStringExtra 2024-06-05 14:59:49 +02:00
Benoit Marty
d8c68e5b19 Remove unused actions and fix comment 2024-06-05 14:59:49 +02:00
Benoit Marty
6eaa6a6b99 Extract NotificationBroadcastReceiverHandler to its own file 2024-06-05 14:59:49 +02:00
Benoit Marty
cface66f20 Do not provide the context, but use the StringProvider. 2024-06-05 14:59:48 +02:00
Benoit Marty
37d9d42eb7 NotificationBroadcastReceiver now delegate treatment to NotificationBroadcastReceiverHandler to be able to unit test the logic 2024-06-05 14:59:48 +02:00
Benoit Marty
61b3709970 Let NotificationBroadcastReceiver inject NotificationDrawerManager instead of implementation 2024-06-05 14:59:47 +02:00
Benoit Marty
3ddec73ac5 When replying from notification, do not interfere with specialModeEventTimelineItem 2024-06-05 14:59:46 +02:00
Benoit Marty
7c559363a4 Handle quick reply from notification (still disabled) 2024-06-05 14:59:46 +02:00
bmarty
66636ea967 Sync Strings from Localazy 2024-06-03 00:24:07 +00:00
Jorge Martin Espinosa
025d913b6e
Simplify summary notifications (#2958) 2024-05-31 12:31:09 +02:00
Jorge Martin Espinosa
8b85cc0160
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
f5a0e83cb2
Merge pull request #2941 from element-hq/sync-localazy
Sync Strings
2024-05-29 16:27:17 +02:00
bmarty
ca5bc71057 Sync Strings from Localazy 2024-05-29 12:44:57 +00:00
Benoit Marty
8c3bb043ab Fix small issue introduced in #2924. 2024-05-29 14:25:57 +02:00
Jorge Martin Espinosa
a1adc7476d
Bump Matrix Rust SDK to v0.2.21 and fix conflicts (#2938) 2024-05-29 13:12:44 +02:00
Jorge Martin Espinosa
04e503177b
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
3a39e2a3ec
Merge pull request #2921 from element-hq/sync-localazy
Sync Strings
2024-05-27 15:52:38 +02:00
Benoit Marty
b3e0f6e843 Translations: pt -> pt-rBR 2024-05-27 14:51:32 +02:00
bmarty
f24e537580 Sync Strings from Localazy 2024-05-27 00:17:53 +00:00
Benoit Marty
7911fda1fa Rename class (code quality) 2024-05-23 14:42:06 +02:00
Benoit Marty
d066f03eab Add logs on pusher registration 2024-05-23 09:58:29 +02:00
Benoit Marty
f04253287f 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
90a14ce056 Change to lambda 2024-05-22 18:16:53 +02:00
Benoit Marty
b2a3b9653e Add test on DefaultPushHandler 2024-05-22 17:04:54 +02:00
Benoit Marty
5b074dc0ba Create interface for NotifiableEventResolver 2024-05-22 15:44:50 +02:00
Benoit Marty
980a80bcf5 Cleanup 2024-05-22 15:29:27 +02:00
Benoit Marty
fe771a37c2 isCalledExactly(1) -> isCalledOnce() 2024-05-22 15:26:53 +02:00
Benoit Marty
3bde744d76 Add test on DefaultTestPush 2024-05-22 15:22:03 +02:00
Benoit Marty
97530e752f Add test on DefaultPusherSubscriber 2024-05-22 15:10:55 +02:00
Benoit Marty
707a530752 Fix wrong package name. 2024-05-22 14:44:35 +02:00
Benoit Marty
505f6d4dae Add test on DefaultPushService 2024-05-22 14:29:35 +02:00
Benoit Marty
dc6e62a324 Add test on PushGatewayNotifyRequest 2024-05-22 12:21:33 +02:00
Benoit Marty
20880b01da Extract testPush to its own class and rename PushersManager to DefaultPusherSubscriber 2024-05-22 11:55:10 +02:00