mirror of
https://github.com/element-hq/element-web
synced 2024-11-28 04:21:57 +03:00
clean up
Signed-off-by: Michael Telatynski <7t3chguy@gmail.com>
This commit is contained in:
parent
73d966443c
commit
148f215d4e
1 changed files with 1 additions and 1 deletions
|
@ -61,7 +61,7 @@ const useImageUrl = ({url, urls, idName, name, defaultToInitialLetter}) => {
|
||||||
// This means the state could be RECONNECTING, SYNCING, PREPARED or CATCHUP.
|
// This means the state could be RECONNECTING, SYNCING, PREPARED or CATCHUP.
|
||||||
const reconnected = syncState !== "ERROR" && prevState !== syncState;
|
const reconnected = syncState !== "ERROR" && prevState !== syncState;
|
||||||
if (reconnected) {
|
if (reconnected) {
|
||||||
setIndex(i => i > 0 ? 0 : i);
|
setIndex(0);
|
||||||
}
|
}
|
||||||
}, []);
|
}, []);
|
||||||
useEventEmitter(cli, "sync", onClientSync);
|
useEventEmitter(cli, "sync", onClientSync);
|
||||||
|
|
Loading…
Reference in a new issue