Upgrade eslint-plugin-matrix-org to 1.2.1
This upgrade came with a number of new lints that needed to be fixed across the code base. Primarily: explicit return types on functions, and explicit visibility modifiers on class members.
This commit is contained in:
@@ -107,13 +107,13 @@ export const useLoadGroupCall = (
|
||||
return rtcSession;
|
||||
};
|
||||
|
||||
const waitForClientSyncing = async () => {
|
||||
const waitForClientSyncing = async (): Promise<void> => {
|
||||
if (client.getSyncState() !== SyncState.Syncing) {
|
||||
logger.debug(
|
||||
"useLoadGroupCall: waiting for client to start syncing..."
|
||||
);
|
||||
await new Promise<void>((resolve) => {
|
||||
const onSync = () => {
|
||||
const onSync = (): void => {
|
||||
if (client.getSyncState() === SyncState.Syncing) {
|
||||
client.off(ClientEvent.Sync, onSync);
|
||||
return resolve();
|
||||
|
||||
Reference in New Issue
Block a user