Remove NavigationState.Space. (#6185)

* Remove `NavigationState.Space`.
We do not have the concept of current space.

* Fix test.
This commit is contained in:
Benoit Marty 2026-02-12 13:24:51 +01:00 committed by GitHub
commit 6ec35db9d4
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
11 changed files with 24 additions and 215 deletions

View file

@ -72,17 +72,16 @@ class DefaultNotificationDrawerManager(
when (navigationState) {
NavigationState.Root -> {}
is NavigationState.Session -> {}
is NavigationState.Space -> {}
is NavigationState.Room -> {
// Cleanup notification for current room
clearMessagesForRoom(
sessionId = navigationState.parentSpace.parentSession.sessionId,
sessionId = navigationState.parentSession.sessionId,
roomId = navigationState.roomId,
)
}
is NavigationState.Thread -> {
clearMessagesForThread(
sessionId = navigationState.parentRoom.parentSpace.parentSession.sessionId,
sessionId = navigationState.parentRoom.parentSession.sessionId,
roomId = navigationState.parentRoom.roomId,
threadId = navigationState.threadId,
)