Fixes #2302 - Fix room messages coming in as push notifications when inside a room when entering it from the invites list

This commit is contained in:
Stefan Ceriu
2024-01-08 14:22:13 +02:00
parent 9a2966dacf
commit 08d0e785d6
2 changed files with 4 additions and 1 deletions
@@ -205,12 +205,14 @@ class UserSessionFlowCoordinatorStateMachine {
func addErrorHandler(_ handler: @escaping StateMachine<State, Event>.Handler) {
stateMachine.addErrorHandler(handler: handler)
}
/// Flag indicating the machine is displaying room screen with given room identifier
func isDisplayingRoomScreen(withRoomID roomID: String) -> Bool {
switch stateMachine.state {
case .roomList(let selectedRoomID):
return roomID == selectedRoomID
case .invitesScreen(let selectedRoomID):
return roomID == selectedRoomID
default:
return false
}
+1
View File
@@ -0,0 +1 @@
Fix room messages coming in as push notifications when inside a room when entering it from the invites list