Skip to content

Commit

Permalink
Fixes #2302 - Fix room messages coming in as push notifications when …
Browse files Browse the repository at this point in the history
…inside a room when entering it from the invites list
  • Loading branch information
stefanceriu committed Jan 8, 2024
1 parent 9a2966d commit 08d0e78
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -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
}
Expand Down
1 change: 1 addition & 0 deletions changelog.d/2302.bugfix
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Fix room messages coming in as push notifications when inside a room when entering it from the invites list

0 comments on commit 08d0e78

Please sign in to comment.