Commit Graph

321 Commits

Author SHA1 Message Date
ganfra
85d6acfc48 Join Room : makes sure we can join by alias 2024-07-23 21:17:35 +02:00
ElementBot
9522569860 Sync Strings (#3232)
Co-authored-by: bmarty <3940906+bmarty@users.noreply.github.com>
2024-07-22 08:59:47 +00:00
Benoit Marty
94f38f1af5 Rework FakeMatrixRoom so that it contains only lambdas. (#3229)
* Upgrade lint to 8.7.0-alpha01

* FakeMatrixRoom: lambda everywhere

Fix test compilation issues
2024-07-22 10:39:48 +02:00
Benoit Marty
b593b47515 Remove PushBindsModule and use ContributesBinding. 2024-07-16 11:29:55 +02:00
Benoit Marty
2585f8ba52 Rename interface NotificationDrawerManager to NotificationCleaner since it actually contains only method to remove notifications. 2024-07-16 11:24:41 +02:00
Benoit Marty
5de86c5df5 Update documentation 2024-07-16 11:14:04 +02:00
Jorge Martin Espinosa
bb47ff8f49 Unify the way we decide whether a room is a DM or a group room (#3100)
* Add centralised 'room is DM' check

Also add extension functions for `MatrixRoom` and `MatrixRoomInfo`.

* Use the centralised method and extension functions through the app, including:

- Room list.
- Room details screen.
- Invites.
- Notifications.

Replace most `isDirect` usages with `isDm`.

* Update screenshots

---------

Co-authored-by: ElementBot <benoitm+elementbot@element.io>
2024-07-10 16:28:46 +00:00
jmartinesp
58f2cbf489 Sync Strings from Localazy 2024-07-03 11:21:27 +00:00
Jorge Martin Espinosa
e4e7cdfa17 Fix crash when getting the system ringtone for ringing calls (#3131) 2024-07-02 16:12:29 +00:00
bmarty
99ae2b9640 Sync Strings from Localazy 2024-07-01 00:22:10 +00:00
Benoit Marty
58cdd37a57 Merge pull request #3053 from element-hq/feature/bma/callSettings
Alert for incoming call even if notifications are disabled - WAITING FOR FINAL PRODUCT DECISION
2024-06-28 14:21:23 +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
e8c2902aa0 Move notification_accent_color from resource file to NotificationConfig 2024-06-19 16:48:00 +02:00
Benoit Marty
f308a8b9a2 Remove unused import. 2024-06-19 15:59:41 +02:00
Benoit Marty
4f212b34c0 Update test and add test for incoming call when notifications are disabled. 2024-06-19 11:44:08 +02:00
Benoit Marty
22d63d001c Always notify for incoming calls, even if notifications are disabled. 2024-06-19 11:15:49 +02:00
Benoit Marty
54740c982e Notification channels: Use NotificationChannelCompat.Builder. 2024-06-19 10:56:29 +02:00
Benoit Marty
cfa5461b7d Notification channels: No need to include the version in the constant name. 2024-06-19 10:40:10 +02:00
Benoit Marty
5fe5d38034 Notification channels: Remove unused LISTEN_FOR_EVENTS_NOTIFICATION_CHANNEL_ID 2024-06-19 10:39:03 +02:00
Benoit Marty
15e1fba013 Notification channels: small iteration on old channel deletion. 2024-06-19 10:37:33 +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
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