Michael Telatynski
762d052501
Fix offline status in window title not working reliably ( #8656 )
2022-05-20 17:46:16 +01:00
Michael Telatynski
f29ef04751
Fix race conditions around threads ( #8448 )
2022-05-03 14:25:08 +01:00
Michael Telatynski
fddbc429a9
Fix issue with thread notification state ignoring initial events ( #8417 )
2022-04-29 09:48:57 +01:00
Germain
f4c25e06cd
Fix notification dot for "Mentions & keywords" for thread messages ( #8202 )
2022-03-31 14:48:23 +01:00
J. Ryan Stinnett
65691202f7
Add lint for unused locals ( #8007 )
2022-03-09 12:05:16 +00:00
Germain
acd12c38a9
Fix threads timeline message ordering ( #7968 )
2022-03-03 15:22:16 +00:00
Michael Telatynski
7fa01ffb06
Improve typing around event emitter handlers ( #7816 )
2022-02-22 12:18:08 +00:00
Kerry
5b8d440406
type Actions ( #7862 )
...
* type ViewHomPage action
Signed-off-by: Kerry Archibald <kerrya@element.io>
* type spacestore actions
Signed-off-by: Kerry Archibald <kerrya@element.io>
* lint
Signed-off-by: Kerry Archibald <kerrya@element.io>
* add action types
Signed-off-by: Kerry Archibald <kerrya@element.io>
* use new action types in stores
Signed-off-by: Kerry Archibald <kerrya@element.io>
* remove debug change
Signed-off-by: Kerry Archibald <kerrya@element.io>
* stricter keyboard shortcut types
Signed-off-by: Kerry Archibald <kerrya@element.io>
* action comments
Signed-off-by: Kerry Archibald <kerrya@element.io>
2022-02-22 10:04:27 +00:00
David Baker
a958cd20f1
Fix delayed badge update for mentions in encrypted rooms ( #7813 )
...
* Fix delayed badge update for mentions in encrypted rooms
Fixes https://github.com/vector-im/element-web/issues/20859
More detail on the issue
* Remove unused import
* Fix listener removal
2022-02-15 20:06:29 +00:00
Michael Telatynski
f6565bfbc8
Send how many favorited rooms a user has to Posthog ( #7772 )
2022-02-10 10:02:34 +00:00
Michael Telatynski
8e4ced6454
Correctly handle Room.timeline events which have a nullable Room
( #7635 )
2022-01-26 13:24:14 +00:00
Germain
c612014936
Fix ThreadsRoomNotificationState listeners removal on destroy ( #7558 )
2022-01-17 14:54:19 +00:00
Michael Telatynski
fb494a5098
Fix notification badge for All Rooms space ( #7401 )
2021-12-17 11:02:06 +00:00
Germain
69c4a0cebc
Fix main timeline pending events bleeding in thread's timeline ( #7373 )
2021-12-15 12:40:56 +00:00
Germain
ce570ab827
Hook threads notification state to UI ( #7298 )
2021-12-13 14:05:42 +00:00
Aaron Raimist
2e8a93834b
Auto fix
...
Signed-off-by: Aaron Raimist <aaron@raim.ist>
2021-12-09 09:10:23 +00:00
Aaron Raimist
7b94e13a84
Merge branch 'develop' into sort-imports
...
Signed-off-by: Aaron Raimist <aaron@raim.ist>
2021-12-09 08:34:20 +00:00
Germain
38e5e94ee4
Threads notifications after app startup ( #7253 )
2021-12-07 12:51:34 +00:00
Aaron Raimist
bdc56be863
Auto fix
...
Signed-off-by: Aaron Raimist <aaron@raim.ist>
2021-10-22 17:23:37 -05:00
Šimon Brandner
e2b6c2cbd6
Convert RoomNotifs to TS
...
Signed-off-by: Šimon Brandner <simon.bra.ag@gmail.com>
2021-09-27 18:39:57 +02:00
Michael Telatynski
9a8a453827
tidy
2021-09-10 11:09:46 +01:00
Michael Telatynski
aff9be6120
Surface unsent messages on the sublist notification badge too
2021-09-10 10:58:13 +01:00
Michael Telatynski
bbe714257e
Show unsent message warning on Space panel button
2021-09-10 09:17:31 +01:00
Michael Telatynski
329bc8a89e
Move unsent event badge handling into RoomNotificationState
2021-09-09 13:14:05 +01:00
Michael Telatynski
755007cbee
Conclude labs flags and write more tests
2021-07-27 14:39:14 +01:00
Jaiwanth
517e8951ee
Apply suggestions from review
2021-07-22 08:30:18 +05:30
Jaiwanth
a99b24ef83
Merge branch 'develop' of github.com:matrix-org/matrix-react-sdk into spaces-jump-to-room
2021-06-30 11:20:01 +05:30
Jaiwanth
1b21c8f732
Remove unreadRoomId from summarized notification state
2021-06-30 10:53:46 +05:30
J. Ryan Stinnett
ae0a8b8da4
Auto-fix lint errors
2021-06-29 13:11:58 +01:00
Jaiwanth
bf2d26ef21
Modify to navigate only on notification dots click
2021-05-20 11:23:00 +05:30
Jaiwanth
3e8863fc9a
Adjust behaviour for the home space
2021-05-11 13:03:45 +05:30
Jaiwanth
73b9ad41da
Navigate to room with maximum notifications when clicked on already selected space
2021-05-05 12:38:44 +05:30
Travis Ralston
4be9c51dad
Move all the RED_EXCLAMATION badges to a single definition
2021-04-21 16:43:25 -06:00
David Baker
d39b7175f7
Don't include invisible rooms in notify summary
...
This could cause rogue title bar natifications if you had invisible rooms
2021-04-16 15:31:01 +01:00
Michael Telatynski
7030c636f0
Initial Space Store for keeping track of space hierarchies from sync
2021-02-25 16:36:35 +00:00
J. Ryan Stinnett
ce226ab534
Replace Riot with Element in docs and comments
...
This only covers the simple cases of references to issues and repos. More
complex areas, such as deployment scripts, will be handled separately.
Part of https://github.com/vector-im/element-web/issues/14864
2020-08-03 18:33:36 +01:00
Travis Ralston
da05cac1b6
Listen for our own membership changes on notification states
...
Fixes https://github.com/vector-im/riot-web/issues/14798 (part 1)
When we transition from invite to not-invite we need to ensure we clear the invite notification state.
2020-07-30 14:33:38 -06:00
Travis Ralston
900c234434
Internalize notification state handling for lists
...
This reduces the update cost of rooms changing, and fixes a bug where when a sublist became filtered it would change the notification count of the sublist.
This does change the expected usage of the state store to ensuring that only one place updates the rooms on the list states, which is currently the room list store. Ideally the state store could listen to the room list store to update itself, however due to a complicated require() loop it is not possible.
2020-07-27 17:33:27 -06:00
Travis Ralston
61c5b4f9bf
deunderscore
2020-07-22 08:23:47 -06:00
Travis Ralston
cd77434a69
Appease the linter
2020-07-21 20:59:33 -06:00
Travis Ralston
dd16ec070c
Replace countRoomsWithNotif with a dedicated NotificationState
...
Fixes https://github.com/vector-im/riot-web/issues/14694
Instead of spending 10-1000ms in a function iterating over a whole lot of room events, we can use our cached state from the Notification State Store.
This commit sets up a structure that could be applied to communities in the TagPanel too, as that could probably use a similar optimization.
This reduces the updateStatusIndicator() time to just 4ms on average.
2020-07-21 20:24:44 -06:00
Travis Ralston
6a29cd33c1
Remove tag specificity from notification states
...
We don't need this complexity now that we aren't doing per-tag logic.
2020-07-21 19:59:17 -06:00
Travis Ralston
a4f7f666cf
Remove useless TagSpecificNotificationState
...
FTUE Notifications won't be needing this.
2020-07-17 16:20:19 -06:00
Travis Ralston
4a8a59c578
Make EffectiveMembership utils generic
...
Fixes https://github.com/vector-im/riot-web/issues/14460
Just have to move them to utils.
2020-07-13 20:29:46 -06:00
Travis Ralston
ae09bfb8fd
Don't destroy room notification states when replacing them
...
The "should never happen" now happens a lot by design. We shouldn't destroy the state as it'll stop badge counts for everything.
Fixes https://github.com/vector-im/riot-web/issues/14391
2020-07-09 10:22:04 -06:00
Travis Ralston
47380306c2
Move and improve notification state handling
...
Previously we were creating a notification state whenever we needed one, which was leading to hundreds of listeners even on a small account. To ease the burden, and reduce the load of having to wake so many listeners, we now record a single listener for each tag ID and room combination.
This commit also introduces a number of utilities to make future notification work a bit of an easier transition, such as the `isX` and `hasX` getters on the new NotificationState abstract class. Similarly, "snapshots" have been added to reduce code duplication between different kinds of states checking for updates.
The ListNotificationState is now heavily tied into the store which offers it to help reuse the cache of room notification states.
Fixes https://github.com/vector-im/riot-web/issues/14370
2020-07-08 19:26:25 -06:00
Michael Telatynski
1849ed90d2
Implement ViewRoomDelta for the new Room List
...
Signed-off-by: Michael Telatynski <7t3chguy@gmail.com>
2020-07-06 17:58:29 +01:00
Travis Ralston
a6e0799b57
Handle push rule changes in the RoomNotificationState
2020-07-02 15:05:01 -06:00
Travis Ralston
a5001e50aa
Disable all unread decorations on muted rooms
2020-07-02 13:33:24 -06:00
Travis Ralston
782a555e44
Make badges represent old list behaviour
...
Fixes https://github.com/vector-im/riot-web/issues/14160
2020-06-30 13:45:10 -06:00