Commit Graph

38 Commits

Author SHA1 Message Date
Adam Brown
0c35481bda adding support for unified push 2022-08-18 21:25:38 +01:00
Adam Brown
41da7a2af9 abstracting the push token register/unregister 2022-08-18 17:56:01 +01:00
Adam Brown
b69f2c69c0 abstracting the firebase push service to the push module 2022-08-17 19:16:45 +01:00
Adam Brown
0730cd069c adding support for sending clear images 2022-08-09 21:12:43 +01:00
Adam Brown
3bbfd05fce applying when timestamp to the summary notification 2022-07-28 22:06:04 +01:00
Adam Brown
8c1265c957 avoiding notification overlap by only using alerting summary group instead of all notifications 2022-07-28 19:43:27 +01:00
Adam Brown
2a0f28d3b3 splitting dm and group notifications into separate channels
- adding notification system group
- only notifying the summary to avoid overlapping notifications
2022-07-26 22:48:24 +01:00
Adam Brown
b0a438ee98 diffing historical event timestamps to avoid acting on them as new events
- fixes an issue where the database window would pull in legacy events after marking new events as read
2022-07-13 23:03:58 +01:00
Adam Brown
63618276b7 initialisating channels as part of the first notification emission rather than blocking application init 2022-07-13 18:32:10 +01:00
Adam Brown
6f18d48905 adding missing messaging style config 2022-07-13 18:24:17 +01:00
Adam Brown
671913fd69 using the same group alert behaviour for the summary 2022-07-11 21:08:24 +01:00
Adam Brown
83537b1367 handling the first sync without any local cache as a loading state rather than showing the empty view 2022-06-11 23:11:48 +01:00
Adam Brown
65bf8c0d64 improved notification testing 2022-06-11 10:21:51 +01:00
Adam Brown
bb47fcd9d6 adding tests around the notification usecase entry point 2022-06-08 19:21:20 +01:00
Adam Brown
e1029dc497 adding tests around notification rendering 2022-05-29 16:10:00 +01:00
Adam Brown
94c26a0375 fixing wrong message content in summary along with message order
- also ensures alerts for the first new message in a room when other rooms with messages are already displayed
2022-05-23 22:52:32 +01:00
Adam Brown
30453e695d fixing the summary notification displaying when marking rooms as read and no other notifications are showing 2022-05-23 20:41:32 +01:00
Adam Brown
64bce44a12 extracting notification logic to its own class with unit tests 2022-05-23 20:28:02 +01:00
Adam Brown
f3b1600d58 proccessing notifications so they correctly alert on changes and only display upon new messages 2022-05-21 12:18:25 +01:00
Adam Brown
7a10ae3232 fixing reading notification on other session not always being taken into account
- the sync wasn't being triggered for long enough, now we're waiting for 60 seconds or until the unread change
2022-05-21 11:47:42 +01:00
Adam Brown
6e2e377e51 including replies and image emoji in notifications and summaries 2022-05-16 22:55:31 +01:00
Adam Brown
ffa8fad2b0 only notifying message notifications when they're new 2022-05-16 22:43:55 +01:00
Adam Brown
73331b3d1e launching the app when tapping the summary notification 2022-05-08 12:49:16 +01:00
Adam Brown
995377343b adding summary notification title and ensuring that it updates without pinging when the counts change 2022-05-08 12:36:53 +01:00
Adam Brown
f2be4b8b95 forcing the notification rendering to occur on the main thread
- hopefully reduce the amount of individual notification popups when a collection of messages are received
2022-05-08 12:23:13 +01:00
Adam Brown
42914ffe53 only notifying the summary notification if we've added new messages, avoids renotifying when marking rooms as read 2022-04-26 22:06:02 +01:00
Adam Brown
f3f256e0d3 fixing notifications being dismissed early when there's only 1 left and fixes wrong room being opened when tapping notification 2022-04-26 21:57:56 +01:00
Adam Brown
f71f7e9099 cancelling existing notification intents to reset the room id extra 2022-04-25 23:21:57 +01:00
Adam Brown
81d88b51fc setting push token via background scheduler which will automatically retry 2022-04-04 20:47:05 +01:00
Adam Brown
c3839c05bc adding < 28 notification support by using the inbox style 2022-03-18 20:52:17 +00:00
Adam Brown
50f0ba4e3c only setting notification channel for supported android versions 2022-03-18 20:52:17 +00:00
Adam Brown
f0a856eb20 adding room join/leaving based on sync status
- means the invitations page should work!
2022-03-17 23:01:40 +00:00
Adam Brown
271727dda7 only display message notifications if we've received a new one, not when marking old ones as read 2022-03-17 21:29:45 +00:00
Adam Brown
50e12c8c54 using combine instead of merge for syncing until the event appears 2022-03-13 19:04:49 +00:00
Adam Brown
a8218b7e66 splitting the notification logic 2022-03-13 18:56:21 +00:00
Adam Brown
ccecfb08e0 speed up message render by marking room read state async 2022-03-07 20:00:39 +00:00
Adam Brown
ecb24ece11 more tests 2022-03-03 20:57:13 +00:00
Adam Brown
c78d24a458 initial commit 2022-02-27 21:48:14 +00:00