Commit graph

90 commits

Author SHA1 Message Date
Jorge Martin Espinosa
a0c1f2c18a
Display room invitation notification (#735)
* Notifications: Add some extra mappings so we keep the original contents and can pass it later to an UI layer

* Fix notifications not appearing for a room if the app was on that room when it went to background.

* Modernize how we create spannable strings for notifications, remove unneeded dependency

* Remove actions from invite notifications temporarily

* Add `NotificationDrawerManager` interface to be able to clear membership notifications when accepting or rejecting a room invite

* Fix tests

* Add comment to clarify some weird behaviours

* Address review comments

* Set circle shape for `largeBitmap` in message notifications

* Fix no avatar in DM rooms

* Fix rebase issues

* Add invite list pending intent:

- Refactor pending intents.
- Make `DeepLinkData` a sealed interface.
- Fix and add tests.

* Rename `navigate__` functions to `attach__`

* Add an extra test case for the `InviteList` deep link

* Address most review comments.

* Fix rebase issue

* Add fallback notification type, allow dismissing invite notifications.

Fallback notifications have a different underlying type and can be dismissed at will.

* Fix tests
2023-07-10 14:34:58 +02:00
bmarty
6e54ed7b77 Sync Strings from Localazy 2023-07-03 00:11:17 +00:00
renovate[bot]
32332deaf4 Update dependency org.matrix.rustcomponents:sdk-android to v0.1.24 (#675)
* Update dependency org.matrix.rustcomponents:sdk-android to v0.1.24

* Add new `filterByPushRules`.
Only existing usage of this API will set this param to `true` in order to not change the current behavior.

---------

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: Marco Romano <marcor@element.io>
2023-06-27 08:29:36 +02:00
bmarty
874739ece9 Sync Strings from Localazy 2023-06-26 00:10:53 +00:00
Benoit Marty
f38f1487c5 Merge pull request #626 from vector-im/feature/bma/sonar
Sonar
2023-06-21 10:41:26 +02:00
github-actions[bot]
fe5524bae4 Sync Strings (#630)
* Sync Strings from Localazy

* Update strings, remove broken German translation

* Update screenshots

---------

Co-authored-by: bmarty <bmarty@users.noreply.github.com>
Co-authored-by: Jorge Martín <jorgem@element.io>
Co-authored-by: ElementBot <benoitm+elementbot@element.io>
2023-06-19 11:18:01 +00:00
Benoit Marty
2452d8aa91 Fix the 6 issues reported by Sonar. 2023-06-16 18:08:20 +02:00
ganfra
438fc6bb99 Merge branch 'develop' into feature/fga/media_viewer_actions 2023-06-06 14:35:25 +02:00
github-actions[bot]
044a3c991e Sync Strings (#522)
Sync Strings from Localazy
2023-06-05 15:26:50 +00:00
Yoan Pintas
f534ecda96 Init analytics modules (#350) 2023-06-05 13:11:34 +00:00
Benoit Marty
44bfd1f15c More cleanup now that min API is back to 23. 2023-06-05 10:46:21 +02:00
Benoit Marty
a1e0a2c08d Fix compilation issue after rebase. 2023-06-01 17:02:48 +02:00
Benoit Marty
c46692eb20 Do not use System.currentTimeMillis() 2023-06-01 12:27:11 +02:00
Benoit Marty
881c8fd97b Fix test 2023-06-01 12:24:30 +02:00
Benoit Marty
c7e68e5d81 Use coroutine dispatcher instead of WorkerThread 2023-06-01 12:24:30 +02:00
Benoit Marty
685b034977 Cleanup 2023-06-01 12:24:30 +02:00
Benoit Marty
183dd153ff Fix test 2023-06-01 12:24:30 +02:00
Benoit Marty
1ac5f8e788 Disable debugging of notification 2023-06-01 12:24:30 +02:00
Benoit Marty
e02ba42ea0 Bigger image - WIP 2023-06-01 12:24:30 +02:00
Benoit Marty
fee97ff735 Notifications: add prefix to debug notification display. 2023-06-01 12:24:30 +02:00
Benoit Marty
bc9ec5a28a Notifications: render current user name and avatar. 2023-06-01 12:23:53 +02:00
Benoit Marty
c91e8e5050 Notifications: render room and user icons. 2023-06-01 12:23:53 +02:00
Benoit Marty
31afed1448 Map some info for the notifications. 2023-06-01 12:23:53 +02:00
Benoit Marty
a2cf497a00 Merge pull request #478 from vector-im/feature/bma/slidingSyncCleanup
Sliding sync cleanup
2023-06-01 12:17:01 +02:00
Benoit Marty
becbc6607d Fix detected forbidden pattern. 2023-05-31 15:31:05 +02:00
Benoit Marty
111cca99bf Add EventType to avoid using hard-coding strings. 2023-05-30 14:11:26 +02:00
Benoit Marty
ff1147e611 Sync localazy to fix lint error. 2023-05-30 13:55:23 +02:00
Benoit Marty
7f2b23507c Merge pull request #471 from vector-im/sync-localazy
Sync Strings
2023-05-30 13:06:51 +02:00
bmarty
175b7deccb Sync Strings from Localazy 2023-05-29 00:09:47 +00:00
ganfra
405a6073c6 Fix lint issue 2023-05-26 13:07:27 +02:00
Benoit Marty
9d66af834d Move RoomLastMessageFormatter and related class and resource to the new module eventformatter, in order to prepare rendering of state event in the timeline. 2023-05-25 14:15:35 +02:00
Benoit Marty
f1bd767112 Fix compilation warnings. 2023-05-23 12:00:36 +02:00
Benoit Marty
79cc6161a3 Merge pull request #370 from vector-im/sync-localazy
Sync Strings
2023-05-02 17:45:50 +02:00
bmarty
8f1793ffa4 Sync Strings from Localazy 2023-05-01 00:09:50 +00:00
ganfra
154bd5e714 Update rust-sdk : make the app compiles again 2023-04-28 18:26:32 +02:00
Jorge Martin Espinosa
78a715ce8d Fix NotificationData?.orDefault using an invalid UserId (#362) 2023-04-27 12:46:32 +02:00
Benoit Marty
913e6465cb Remove extra plural items manually until the issue on Localazy is fixed. 2023-04-24 17:04:20 +02:00
bmarty
860777d20c Sync Strings from Localazy 2023-04-24 00:09:54 +00:00
Jorge Martin Espinosa
fae3417181 Validate several ids in constructors (#336)
* Validate ids in constructors.

* Remove redundant `.value` usage in string interpolation.

* Make a distinction between `SessionId` and `UserId` in `TestData`.
2023-04-18 16:17:13 +00:00
Benoit Marty
9971926760 Fix tests. 2023-04-17 09:51:52 +02:00
Benoit Marty
a4897e6b76 Small quality fixes 2023-04-17 09:42:59 +02:00
Benoit Marty
cbc1bdfe52 More cleanup 2023-04-14 18:34:49 +02:00
Benoit Marty
96812209a3 Improve rendering of notifications 2023-04-14 18:31:35 +02:00
Benoit Marty
aad55d6341 small cleanup 2023-04-14 18:19:59 +02:00
Benoit Marty
aba39ef568 Fix issue with pendingintent data. (Simplier to use String that Serializable) 2023-04-14 18:10:55 +02:00
Benoit Marty
3966a03e3b Improve temporary message displayed in notifications 2023-04-14 17:52:39 +02:00
Benoit Marty
efb620938c Create NotificationFactory 2023-04-14 17:49:47 +02:00
Benoit Marty
d280510dd9 Extract channel management to dedicated class 2023-04-14 17:37:49 +02:00
Benoit Marty
b925fa8c09 Create PendingIntentFactory 2023-04-14 17:26:01 +02:00
Benoit Marty
6927e26bd2 rename package 2023-04-14 17:17:52 +02:00