Fix online app state not being set during goodbye state
This commit is contained in:
@@ -185,7 +185,7 @@ export const ClientConfigStore: FC = () => {
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (status.online && appState.matches('ready.offline')) {
|
if (status.online && appState.matches('ready')) {
|
||||||
sendEvent(AppStateEvent.Online);
|
sendEvent(AppStateEvent.Online);
|
||||||
} else if (!status.online && !appState.matches('ready.offline')) {
|
} else if (!status.online && !appState.matches('ready.offline')) {
|
||||||
sendEvent(AppStateEvent.Offline);
|
sendEvent(AppStateEvent.Offline);
|
||||||
|
|||||||
Reference in New Issue
Block a user