mirror of
https://github.com/stoatchat/for-legacy-web.git
synced 2026-03-07 09:25:27 +00:00
fix(sidebar): don't keep refetching server members
This commit is contained in:
@@ -4,6 +4,7 @@ import { StateUpdater } from "preact/hooks";
|
||||
|
||||
import Auth from "../../mobx/stores/Auth";
|
||||
|
||||
import { resetMemberSidebarFetched } from "../../components/navigation/right/MemberSidebar";
|
||||
import { ClientStatus } from "./RevoltClient";
|
||||
|
||||
export let preventReconnect = false;
|
||||
@@ -43,7 +44,10 @@ export function registerEvents(
|
||||
attemptReconnect();
|
||||
},
|
||||
|
||||
ready: () => setStatus(ClientStatus.ONLINE),
|
||||
ready: () => {
|
||||
resetMemberSidebarFetched();
|
||||
setStatus(ClientStatus.ONLINE);
|
||||
},
|
||||
|
||||
logout: () => {
|
||||
auth.logout();
|
||||
|
||||
Reference in New Issue
Block a user