fix: chaos in DM session
This commit is contained in:
@@ -91,6 +91,7 @@ const GoogleLoginInner: FC<Props> = ({ type = "login", loaded, loadError }) => {
|
||||
const GoogleLoginButton: FC<Props> = ({ type = "login", clientId }) => {
|
||||
const [scriptLoaded, setScriptLoaded] = useState(false);
|
||||
const [hasError, setHasError] = useState(false);
|
||||
if (!clientId) return null;
|
||||
return (
|
||||
<GoogleOAuthProvider
|
||||
onScriptLoadError={() => {
|
||||
|
||||
@@ -47,12 +47,13 @@ let inter: number | null = null;
|
||||
export default function useStreaming() {
|
||||
const [readyPullData, setReadyPullData] = useState(false);
|
||||
const {
|
||||
authData: { uid: loginUid },
|
||||
authData,
|
||||
ui: { ready, online },
|
||||
footprint: { afterMid, usersVersion, readUsers, readChannels }
|
||||
} = useAppSelector((store) => store);
|
||||
const [renewToken] = useRenewMutation();
|
||||
const dispatch = useAppDispatch();
|
||||
const loginUid = authData.user?.uid;
|
||||
let initialized = false;
|
||||
let initializing = false;
|
||||
let controller = new AbortController();
|
||||
|
||||
Reference in New Issue
Block a user