Commit Graph

107 Commits

Author SHA1 Message Date
Marco Romano
78773b68e7 Make the functions in SystemUtils extensions (#899)
- They are now all extensions over `Context` or `Activity` (when `Context` is not enough) (some of them already were).
- Allows for IDE completion.
2023-07-18 13:11:11 +00:00
Benoit Marty
b15484933d Merge branch 'develop' into fix/jme/880-sliding-sync-loop-expires-and-restarts 2023-07-17 22:18:59 +02:00
ganfra
9846db6338 Rework a bit MatrixClientHolder and reintroduce cacheIndex... 2023-07-17 18:34:50 +02:00
Jorge Martin Espinosa
e61af2eb7d Fix: make sure we ignore notifications for open rooms (#867)
* Make sure we ignore notifications for open rooms
- Listen to process lifecycle changes in `AppForegroundStateService`. Use initializers to reliable create it.
- Merge `AppNavigationState` with `AppForegroundState`. Renamed the previous `AppNavigationState` to `NavigationState`, created a new `AppNavigationState` which contains both the navigation state and the foreground state.
2023-07-17 17:02:06 +02:00
Jorge Martín
ded1518f0b Try to centralise session restoration through MatrixClientsHolder 2023-07-17 15:05:13 +02:00
ElementBot
045d957f91 Sync Strings (#882)
* Sync Strings from Localazy

* Update screenshots

---------

Co-authored-by: bmarty <bmarty@users.noreply.github.com>
2023-07-17 10:22:15 +02:00
Jorge Martín
d69dea6608 Fix sliding sync loop restarts due to expirations
Both `NotifiableEventResolver` and `DefaultNotificationDrawerManager` were creating new Rust SDK Clients while processing notifications instead of reusing the already existing one.
2023-07-17 08:05:12 +02:00
Jorge Martin Espinosa
7da59c61cc Set right timestamp for fallback notifications (#864) 2023-07-13 06:02:38 +00:00
Benoit Marty
04890b6f15 Ensure pending intent data are unique. 2023-07-12 17:28:53 +02:00
Benoit Marty
816685a534 Use the param (bad copy paste) 2023-07-12 14:14:44 +02:00
Jorge Martin Espinosa
9170c5eb71 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
bd3dd76039 Sync Strings from Localazy 2023-07-03 00:11:17 +00:00
renovate[bot]
016c27450a Update kotlin 2023-06-28 22:23:44 +00:00
renovate[bot]
ff135352d8 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
9c5c578c67 Sync Strings from Localazy 2023-06-26 00:10:53 +00:00
Benoit Marty
02aee0fe15 Merge pull request #626 from vector-im/feature/bma/sonar
Sonar
2023-06-21 10:41:26 +02:00
github-actions[bot]
3f7738c001 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
9c5f05dba4 Fix the 6 issues reported by Sonar. 2023-06-16 18:08:20 +02:00
ganfra
20eb2ade54 Merge branch 'develop' into feature/fga/media_viewer_actions 2023-06-06 14:35:25 +02:00
github-actions[bot]
03c28ac52d Sync Strings (#522)
Sync Strings from Localazy
2023-06-05 15:26:50 +00:00
Yoan Pintas
d2263372d2 Init analytics modules (#350) 2023-06-05 13:11:34 +00:00
Benoit Marty
0a689d5456 More cleanup now that min API is back to 23. 2023-06-05 10:46:21 +02:00
Benoit Marty
99204ce9e6 Fix compilation issue after rebase. 2023-06-01 17:02:48 +02:00
Benoit Marty
42bafbdc1a Do not use System.currentTimeMillis() 2023-06-01 12:27:11 +02:00
Benoit Marty
cede53579c Fix test 2023-06-01 12:24:30 +02:00
Benoit Marty
fe85a7cc92 Use coroutine dispatcher instead of WorkerThread 2023-06-01 12:24:30 +02:00
Benoit Marty
3d77083aa7 Cleanup 2023-06-01 12:24:30 +02:00
Benoit Marty
8b190d776a Fix test 2023-06-01 12:24:30 +02:00
Benoit Marty
44c0466b09 Disable debugging of notification 2023-06-01 12:24:30 +02:00
Benoit Marty
2fb835ec77 Bigger image - WIP 2023-06-01 12:24:30 +02:00
Benoit Marty
e3b2a30f58 Notifications: add prefix to debug notification display. 2023-06-01 12:24:30 +02:00
Benoit Marty
7e889e5c0a Notifications: render current user name and avatar. 2023-06-01 12:23:53 +02:00
Benoit Marty
afa06fb03e Notifications: render room and user icons. 2023-06-01 12:23:53 +02:00
Benoit Marty
d0d6be3912 Map some info for the notifications. 2023-06-01 12:23:53 +02:00
Benoit Marty
feebff3d3d Merge pull request #478 from vector-im/feature/bma/slidingSyncCleanup
Sliding sync cleanup
2023-06-01 12:17:01 +02:00
Benoit Marty
8cf61eaa55 Fix detected forbidden pattern. 2023-05-31 15:31:05 +02:00
Benoit Marty
190b3cc990 Add EventType to avoid using hard-coding strings. 2023-05-30 14:11:26 +02:00
Benoit Marty
534bf67883 Sync localazy to fix lint error. 2023-05-30 13:55:23 +02:00
Benoit Marty
1a2e05608a Merge pull request #471 from vector-im/sync-localazy
Sync Strings
2023-05-30 13:06:51 +02:00
bmarty
3daea29a82 Sync Strings from Localazy 2023-05-29 00:09:47 +00:00
ganfra
c09671ae21 Fix lint issue 2023-05-26 13:07:27 +02:00
Benoit Marty
70df081840 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
a2f2cd28f9 Fix compilation warnings. 2023-05-23 12:00:36 +02:00
renovate[bot]
87e57f5b51 Update kotlin 2023-05-03 17:40:41 +00:00
Benoit Marty
977c87c141 Merge pull request #370 from vector-im/sync-localazy
Sync Strings
2023-05-02 17:45:50 +02:00
bmarty
066ee4f43a Sync Strings from Localazy 2023-05-01 00:09:50 +00:00
ganfra
11db3195e0 Update rust-sdk : make the app compiles again 2023-04-28 18:26:32 +02:00
Jorge Martin Espinosa
e2db1cf7a9 Fix NotificationData?.orDefault using an invalid UserId (#362) 2023-04-27 12:46:32 +02:00
Benoit Marty
0ecd95a3f9 Remove extra plural items manually until the issue on Localazy is fixed. 2023-04-24 17:04:20 +02:00
bmarty
cd5e4458a6 Sync Strings from Localazy 2023-04-24 00:09:54 +00:00