From 762d05250167a5a5b342274ce5ecda444fe8326b Mon Sep 17 00:00:00 2001 From: Michael Telatynski <7t3chguy@gmail.com> Date: Fri, 20 May 2022 17:46:16 +0100 Subject: [PATCH] Fix offline status in window title not working reliably (#8656) --- src/stores/notifications/RoomNotificationStateStore.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/stores/notifications/RoomNotificationStateStore.ts b/src/stores/notifications/RoomNotificationStateStore.ts index 887e1a7332..3409f657a8 100644 --- a/src/stores/notifications/RoomNotificationStateStore.ts +++ b/src/stores/notifications/RoomNotificationStateStore.ts @@ -124,7 +124,8 @@ export class RoomNotificationStateStore extends AsyncStoreWithClient { if (this.globalState.symbol !== globalState.symbol || this.globalState.count !== globalState.count || this.globalState.color !== globalState.color || - this.globalState.numUnreadStates !== globalState.numUnreadStates + this.globalState.numUnreadStates !== globalState.numUnreadStates || + state !== prevState ) { this._globalState = globalState; this.emit(UPDATE_STATUS_INDICATOR, globalState, state, prevState, data);