Remove NavigationState.Space.

We do not have the concept of current space.
This commit is contained in:
Benoit Marty
2026-02-11 18:28:23 +01:00
parent 5065b4c988
commit 83fee6d9ba
10 changed files with 22 additions and 210 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,
)