mirror of
https://github.com/element-hq/element-x-ios.git
synced 2025-03-10 21:39:12 +00:00
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:
parent
9a2966dacf
commit
08d0e785d6
@ -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
changelog.d/2302.bugfix
Normal file
1
changelog.d/2302.bugfix
Normal file
@ -0,0 +1 @@
|
||||
Fix room messages coming in as push notifications when inside a room when entering it from the invites list
|
Loading…
x
Reference in New Issue
Block a user