mirror of
https://github.com/Novaloop-AG/element-x-ios.git
synced 2026-11-02 21:33:26 +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:
@@ -205,12 +205,14 @@ class UserSessionFlowCoordinatorStateMachine {
|
|||||||
func addErrorHandler(_ handler: @escaping StateMachine<State, Event>.Handler) {
|
func addErrorHandler(_ handler: @escaping StateMachine<State, Event>.Handler) {
|
||||||
stateMachine.addErrorHandler(handler: handler)
|
stateMachine.addErrorHandler(handler: handler)
|
||||||
}
|
}
|
||||||
|
|
||||||
/// Flag indicating the machine is displaying room screen with given room identifier
|
/// Flag indicating the machine is displaying room screen with given room identifier
|
||||||
func isDisplayingRoomScreen(withRoomID roomID: String) -> Bool {
|
func isDisplayingRoomScreen(withRoomID roomID: String) -> Bool {
|
||||||
switch stateMachine.state {
|
switch stateMachine.state {
|
||||||
case .roomList(let selectedRoomID):
|
case .roomList(let selectedRoomID):
|
||||||
return roomID == selectedRoomID
|
return roomID == selectedRoomID
|
||||||
|
case .invitesScreen(let selectedRoomID):
|
||||||
|
return roomID == selectedRoomID
|
||||||
default:
|
default:
|
||||||
return false
|
return false
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -0,0 +1 @@
|
|||||||
|
Fix room messages coming in as push notifications when inside a room when entering it from the invites list
|
||||||
Reference in New Issue
Block a user