Page Menu
Home
Phabricator
Search
Configure Global Search
Log In
Files
F3367740
D10176.id34218.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Size
82 KB
Referenced Files
None
Subscribers
None
D10176.id34218.diff
View Options
diff --git a/landing/keyservers.react.js b/landing/keyservers.react.js
--- a/landing/keyservers.react.js
+++ b/landing/keyservers.react.js
@@ -15,7 +15,7 @@
function Keyservers(): React.Node {
React.useEffect(() => {
- import('@lottiefiles/lottie-player');
+ void import('@lottiefiles/lottie-player');
}, []);
const onEyeIllustrationLoad = React.useCallback(() => {
diff --git a/landing/siwe.react.js b/landing/siwe.react.js
--- a/landing/siwe.react.js
+++ b/landing/siwe.react.js
@@ -71,7 +71,7 @@
const statement = getSIWEStatementForPublicKey(
siwePrimaryIdentityPublicKey,
);
- signInWithEthereum(address, signer, siweNonce, statement);
+ void signInWithEthereum(address, signer, siweNonce, statement);
}, [address, signer, siweNonce, siwePrimaryIdentityPublicKey]);
const { openConnectModal } = useConnectModal();
diff --git a/lib/components/base-edit-thread-avatar-provider.react.js b/lib/components/base-edit-thread-avatar-provider.react.js
--- a/lib/components/base-edit-thread-avatar-provider.react.js
+++ b/lib/components/base-edit-thread-avatar-provider.react.js
@@ -83,7 +83,7 @@
updateThreadAvatarMediaUploadInProgress(false);
}
const promise = changeThreadSettingsCall(updateThreadRequest);
- dispatchActionPromise(changeThreadSettingsActionTypes, promise, {
+ void dispatchActionPromise(changeThreadSettingsActionTypes, promise, {
customKeyName: `${action}:${threadID}:avatar`,
});
await promise;
diff --git a/lib/components/edit-user-avatar-provider.react.js b/lib/components/edit-user-avatar-provider.react.js
--- a/lib/components/edit-user-avatar-provider.react.js
+++ b/lib/components/edit-user-avatar-provider.react.js
@@ -77,7 +77,7 @@
}
return await updateUserAvatarCall(request);
})();
- dispatchActionPromise(updateUserAvatarActionTypes, promise);
+ void dispatchActionPromise(updateUserAvatarActionTypes, promise);
await promise;
},
[dispatchActionPromise, updateUserAvatarCall],
diff --git a/lib/hooks/child-threads.js b/lib/hooks/child-threads.js
--- a/lib/hooks/child-threads.js
+++ b/lib/hooks/child-threads.js
@@ -106,7 +106,7 @@
if (!threadIDsWithNoMessages.size) {
return;
}
- dispatchActionPromise(
+ void dispatchActionPromise(
fetchSingleMostRecentMessagesFromThreadsActionTypes,
fetchSingleMostRecentMessages(Array.from(threadIDsWithNoMessages)),
);
diff --git a/lib/hooks/ens-cache.js b/lib/hooks/ens-cache.js
--- a/lib/hooks/ens-cache.js
+++ b/lib/hooks/ens-cache.js
@@ -78,7 +78,7 @@
});
if (allAtOnce) {
- (async () => {
+ void (async () => {
const withENSNames = await getENSNames(ensCache, needFetchUsers);
setENSNames(oldENSNames => {
const newENSNames = new Map(oldENSNames);
@@ -94,7 +94,7 @@
}
for (const ethAddress of needFetchAddresses) {
- (async () => {
+ void (async () => {
const result = await ensCache.getNameForAddress(ethAddress);
if (!result) {
return;
@@ -179,7 +179,7 @@
if (!ensCache || !ethAddress || cachedAvatar !== undefined) {
return;
}
- (async () => {
+ void (async () => {
const result = await ensCache.getAvatarURIForAddress(ethAddress);
if (!result) {
return;
diff --git a/lib/hooks/invite-links.js b/lib/hooks/invite-links.js
--- a/lib/hooks/invite-links.js
+++ b/lib/hooks/invite-links.js
@@ -52,7 +52,7 @@
}
}, [callCreateOrUpdatePublicLink, communityID, name]);
const createOrUpdateInviteLink = React.useCallback(() => {
- dispatchActionPromise(
+ void dispatchActionPromise(
createOrUpdatePublicLinkActionTypes,
createCreateOrUpdateActionPromise(),
);
@@ -72,7 +72,7 @@
}
}, [disableInviteLinkServerCall, communityID, name]);
const disableInviteLink = React.useCallback(() => {
- dispatchActionPromise(
+ void dispatchActionPromise(
disableInviteLinkLinkActionTypes,
createDisableLinkActionPromise(),
);
diff --git a/lib/hooks/promote-sidebar.react.js b/lib/hooks/promote-sidebar.react.js
--- a/lib/hooks/promote-sidebar.react.js
+++ b/lib/hooks/promote-sidebar.react.js
@@ -64,7 +64,7 @@
const onClick = React.useCallback(() => {
try {
- dispatchActionPromise(
+ void dispatchActionPromise(
changeThreadSettingsActionTypes,
(async () => {
return await callChangeThreadSettings({
diff --git a/lib/hooks/relationship-prompt.js b/lib/hooks/relationship-prompt.js
--- a/lib/hooks/relationship-prompt.js
+++ b/lib/hooks/relationship-prompt.js
@@ -88,7 +88,7 @@
const dispatchActionPromise = useDispatchActionPromise();
const onButtonPress = React.useCallback(
(action: RelationshipAction) => {
- dispatchActionPromise(
+ void dispatchActionPromise(
updateRelationshipsActionTypes,
updateRelationship(action),
);
diff --git a/lib/hooks/toggle-unread-status.js b/lib/hooks/toggle-unread-status.js
--- a/lib/hooks/toggle-unread-status.js
+++ b/lib/hooks/toggle-unread-status.js
@@ -29,7 +29,7 @@
unread: !currentUser.unread,
latestMessage: mostRecentNonLocalMessage,
};
- dispatchActionPromise(
+ void dispatchActionPromise(
setThreadUnreadStatusActionTypes,
boundSetThreadUnreadStatus(request),
undefined,
diff --git a/lib/shared/crypto-utils.js b/lib/shared/crypto-utils.js
--- a/lib/shared/crypto-utils.js
+++ b/lib/shared/crypto-utils.js
@@ -52,7 +52,7 @@
: callGetOlmSessionInitializationData;
const olmSessionDataPromise = initDataAction(callServerEndpointOptions);
- dispatchActionPromise(
+ void dispatchActionPromise(
getOlmSessionInitializationDataActionTypes,
olmSessionDataPromise,
);
diff --git a/lib/shared/edit-messages-utils.js b/lib/shared/edit-messages-utils.js
--- a/lib/shared/edit-messages-utils.js
+++ b/lib/shared/edit-messages-utils.js
@@ -39,7 +39,10 @@
}: { +newMessageInfos: $ReadOnlyArray<RawMessageInfo> });
})();
- dispatchActionPromise(sendEditMessageActionTypes, editMessagePromise);
+ void dispatchActionPromise(
+ sendEditMessageActionTypes,
+ editMessagePromise,
+ );
return editMessagePromise;
},
diff --git a/lib/shared/messages/text-message-spec.js b/lib/shared/messages/text-message-spec.js
--- a/lib/shared/messages/text-message-spec.js
+++ b/lib/shared/messages/text-message-spec.js
@@ -318,7 +318,10 @@
changes: { newMemberIDs },
});
- dispatchActionPromise(changeThreadSettingsActionTypes, addMembersPromise);
+ void dispatchActionPromise(
+ changeThreadSettingsActionTypes,
+ addMembersPromise,
+ );
await addMembersPromise;
};
},
diff --git a/lib/shared/search-utils.js b/lib/shared/search-utils.js
--- a/lib/shared/search-utils.js
+++ b/lib/shared/search-utils.js
@@ -273,7 +273,10 @@
onResultsReceived(messages, endReached, queryID, threadID);
})();
- dispatchActionPromise(searchMessagesActionTypes, searchMessagesPromise);
+ void dispatchActionPromise(
+ searchMessagesActionTypes,
+ searchMessagesPromise,
+ );
},
[callSearchMessages, dispatchActionPromise],
);
@@ -288,7 +291,7 @@
React.useState<string>(lowercaseText);
React.useEffect(() => {
- (async () => {
+ void (async () => {
if (!ensCache || !isValidENSName(lowercaseText)) {
setUsernameToSearch(lowercaseText);
return;
@@ -334,7 +337,7 @@
}
}
})();
- dispatchActionPromise(searchUsersActionTypes, searchUsersPromise);
+ void dispatchActionPromise(searchUsersActionTypes, searchUsersPromise);
}, [
callSearchUsers,
currentUserID,
diff --git a/lib/shared/thread-utils.js b/lib/shared/thread-utils.js
--- a/lib/shared/thread-utils.js
+++ b/lib/shared/thread-utils.js
@@ -721,7 +721,7 @@
calendarQuery,
});
}
- dispatchActionPromise(newThreadActionTypes, resultPromise);
+ void dispatchActionPromise(newThreadActionTypes, resultPromise);
const { newThreadID } = await resultPromise;
return newThreadID;
}
@@ -1173,7 +1173,7 @@
React.useEffect(() => {
if (threadID && threadNotInChatList) {
threadWatcher.watchID(threadID);
- dispatchActionPromise(
+ void dispatchActionPromise(
fetchMostRecentMessagesActionTypes,
callFetchMostRecentMessages({ threadID }),
);
@@ -1500,7 +1500,7 @@
>([]);
const threadSearchIndex = useGlobalThreadSearchIndex();
React.useEffect(() => {
- (async () => {
+ void (async () => {
const results = threadSearchIndex.getSearchResults(searchText);
setThreadSearchResults(new Set<string>(results));
const usersResults = await searchUsers(forwardLookupSearchText);
@@ -1520,7 +1520,7 @@
) => Promise<ChangeThreadSettingsPayload>,
) {
const customKeyName = `${removeUsersFromThreadActionTypes.started}:${memberInfo.id}`;
- dispatchActionPromise(
+ void dispatchActionPromise(
removeUsersFromThreadActionTypes,
removeUserFromThreadServerCall({
threadID: threadInfo.id,
diff --git a/lib/socket/activity-handler.react.js b/lib/socket/activity-handler.react.js
--- a/lib/socket/activity-handler.react.js
+++ b/lib/socket/activity-handler.react.js
@@ -124,7 +124,7 @@
if (activityUpdates.length === 0) {
return;
}
- dispatchActionPromise(
+ void dispatchActionPromise(
updateActivityActionTypes,
callUpdateActivity({ activityUpdates }),
);
diff --git a/lib/socket/calendar-query-handler.react.js b/lib/socket/calendar-query-handler.react.js
--- a/lib/socket/calendar-query-handler.react.js
+++ b/lib/socket/calendar-query-handler.react.js
@@ -108,7 +108,7 @@
updateCalendarQuery() {
const calendarQuery = this.props.currentCalendarQuery();
this.serverCalendarQuery = calendarQuery;
- this.props.dispatchActionPromise(
+ void this.props.dispatchActionPromise(
updateCalendarQueryActionTypes,
this.props.updateCalendarQuery({
calendarQuery,
diff --git a/lib/socket/report-handler.react.js b/lib/socket/report-handler.react.js
--- a/lib/socket/report-handler.react.js
+++ b/lib/socket/report-handler.react.js
@@ -60,7 +60,7 @@
if (reports.length === 0) {
return;
}
- this.props.dispatchActionPromise(
+ void this.props.dispatchActionPromise(
sendReportsActionTypes,
this.sendReports(reports),
);
diff --git a/lib/socket/request-response-handler.react.js b/lib/socket/request-response-handler.react.js
--- a/lib/socket/request-response-handler.react.js
+++ b/lib/socket/request-response-handler.react.js
@@ -72,7 +72,9 @@
if (this.props.inflightRequests) {
const clientResponsesPromise =
this.props.getClientResponses(serverRequests);
- this.sendAndHandleClientResponsesToServerRequests(clientResponsesPromise);
+ void this.sendAndHandleClientResponsesToServerRequests(
+ clientResponsesPromise,
+ );
}
};
@@ -102,7 +104,7 @@
return;
}
const promise = this.sendClientResponses(clientResponses);
- this.handleClientResponsesToServerRequests(promise, clientResponses);
+ void this.handleClientResponsesToServerRequests(promise, clientResponses);
}
async handleClientResponsesToServerRequests(
diff --git a/lib/socket/socket.react.js b/lib/socket/socket.react.js
--- a/lib/socket/socket.react.js
+++ b/lib/socket/socket.react.js
@@ -170,7 +170,7 @@
const openObject: { initializeMessageSent?: true } = {};
socket.onopen = () => {
if (this.socket === socket) {
- this.initializeSocket();
+ void this.initializeSocket();
openObject.initializeMessageSent = true;
}
};
@@ -182,7 +182,7 @@
};
this.socket = socket;
- (async () => {
+ void (async () => {
await sleep(clientRequestVisualTimeout);
if (this.socket !== socket || openObject.initializeMessageSent) {
return;
@@ -513,7 +513,7 @@
},
});
} else if (!recoverySessionChange) {
- this.props.dispatchActionPromise(
+ void this.props.dispatchActionPromise(
logOutActionTypes,
this.props.logOut(this.props.preRequestUserState),
);
@@ -698,7 +698,7 @@
await this.props.socketCrashLoopRecovery();
} catch (error) {
console.log(error);
- this.props.dispatchActionPromise(
+ void this.props.dispatchActionPromise(
logOutActionTypes,
this.props.logOut(this.props.preRequestUserState),
);
@@ -720,7 +720,7 @@
(e instanceof ServerError && e.message !== 'unknown_error')
) {
if (e.message === 'not_logged_in') {
- this.props.dispatchActionPromise(
+ void this.props.dispatchActionPromise(
logOutActionTypes,
this.props.logOut(this.props.preRequestUserState),
);
@@ -746,7 +746,7 @@
this.messageLastReceived = Date.now();
this.pingTimeoutID = setTimeout(() => {
if (this.socket === socket) {
- this.sendPing();
+ void this.sendPing();
}
}, pingFrequency);
}
diff --git a/lib/utils/action-utils.js b/lib/utils/action-utils.js
--- a/lib/utils/action-utils.js
+++ b/lib/utils/action-utils.js
@@ -282,7 +282,9 @@
inputStartingPayload: LogInStartingPayload,
) => {
const startingPayload = { ...inputStartingPayload, logInActionSource };
- dispatch(wrapActionPromise(actionTypes, promise, null, startingPayload));
+ void dispatch(
+ wrapActionPromise(actionTypes, promise, null, startingPayload),
+ );
return new Promise<boolean>(r => (callServerEndpointCallback = r));
};
await resolveInvalidatedCookie(
diff --git a/lib/utils/policy-acknowledge-utlis.js b/lib/utils/policy-acknowledge-utlis.js
--- a/lib/utils/policy-acknowledge-utlis.js
+++ b/lib/utils/policy-acknowledge-utlis.js
@@ -23,7 +23,7 @@
throw e;
}
})();
- dispatchActionPromise(
+ void dispatchActionPromise(
policyAcknowledgmentActionTypes,
acknowledgePolicyPromise,
);
diff --git a/native/account/log-in-panel.react.js b/native/account/log-in-panel.react.js
--- a/native/account/log-in-panel.react.js
+++ b/native/account/log-in-panel.react.js
@@ -71,7 +71,7 @@
passwordInput: ?PasswordInput;
componentDidMount() {
- this.attemptToFetchCredentials();
+ void this.attemptToFetchCredentials();
}
get usernameInputText(): string {
@@ -241,7 +241,7 @@
const initialNotificationsEncryptedMessage =
await this.props.getInitialNotificationsEncryptedMessage();
- this.props.dispatchActionPromise(
+ void this.props.dispatchActionPromise(
logInActionTypes,
this.logInAction({ ...extraInfo, initialNotificationsEncryptedMessage }),
undefined,
diff --git a/native/account/logged-out-modal.react.js b/native/account/logged-out-modal.react.js
--- a/native/account/logged-out-modal.react.js
+++ b/native/account/logged-out-modal.react.js
@@ -350,7 +350,7 @@
componentDidMount() {
this.mounted = true;
if (this.props.rehydrateConcluded) {
- this.onInitialAppLoad();
+ void this.onInitialAppLoad();
}
if (this.props.isForeground) {
this.onForeground();
@@ -369,7 +369,7 @@
this.setMode('prompt');
}
if (!prevProps.rehydrateConcluded && this.props.rehydrateConcluded) {
- this.onInitialAppLoad();
+ void this.onInitialAppLoad();
}
if (!prevProps.isForeground && this.props.isForeground) {
this.onForeground();
diff --git a/native/account/register-panel.react.js b/native/account/register-panel.react.js
--- a/native/account/register-panel.react.js
+++ b/native/account/register-panel.react.js
@@ -229,11 +229,11 @@
};
onTermsOfUsePressed = () => {
- Linking.openURL('https://comm.app/terms');
+ void Linking.openURL('https://comm.app/terms');
};
onPrivacyPolicyPressed = () => {
- Linking.openURL('https://comm.app/privacy');
+ void Linking.openURL('https://comm.app/privacy');
};
onChangeUsernameInputText = (text: string) => {
@@ -307,7 +307,7 @@
const extraInfo = await this.props.logInExtraInfo();
const initialNotificationsEncryptedMessage =
await this.props.getInitialNotificationsEncryptedMessage();
- this.props.dispatchActionPromise(
+ void this.props.dispatchActionPromise(
registerActionTypes,
this.registerAction({
...extraInfo,
diff --git a/native/account/registration/connect-ethereum.react.js b/native/account/registration/connect-ethereum.react.js
--- a/native/account/registration/connect-ethereum.react.js
+++ b/native/account/registration/connect-ethereum.react.js
@@ -155,7 +155,7 @@
const onSuccessfulWalletSignature = React.useCallback(
async (result: SIWEResult) => {
const searchPromise = exactSearchUserCall(result.address);
- dispatchActionPromise(exactSearchUserActionTypes, searchPromise);
+ void dispatchActionPromise(exactSearchUserActionTypes, searchPromise);
// We want to figure out if the user has an ENS avatar now
// so that we can default to the ENS avatar in AvatarSelection
diff --git a/native/account/registration/keyserver-selection.react.js b/native/account/registration/keyserver-selection.react.js
--- a/native/account/registration/keyserver-selection.react.js
+++ b/native/account/registration/keyserver-selection.react.js
@@ -130,7 +130,7 @@
}
const getVersionPromise = getVersionCall();
- dispatchActionPromise(getVersionActionTypes, getVersionPromise);
+ void dispatchActionPromise(getVersionActionTypes, getVersionPromise);
// We don't care about the result; just need to make sure this doesn't throw
try {
diff --git a/native/account/registration/password-selection.react.js b/native/account/registration/password-selection.react.js
--- a/native/account/registration/password-selection.react.js
+++ b/native/account/registration/password-selection.react.js
@@ -170,7 +170,7 @@
// It's okay to call this hook conditionally because
// the condition is guaranteed to never change
React.useEffect(() => {
- (async () => {
+ void (async () => {
await sleep(250);
if (shouldAutoFocus.current) {
passwordInputRef.current?.focus();
diff --git a/native/account/registration/registration-server-call.js b/native/account/registration/registration-server-call.js
--- a/native/account/registration/registration-server-call.js
+++ b/native/account/registration/registration-server-call.js
@@ -113,7 +113,7 @@
throw e;
}
})();
- dispatchActionPromise(
+ void dispatchActionPromise(
registerActionTypes,
registerPromise,
undefined,
@@ -188,7 +188,7 @@
}
avatarBeingSetRef.current = true;
const { avatarData, resolve } = currentStep;
- (async () => {
+ void (async () => {
try {
if (!avatarData) {
return;
diff --git a/native/account/registration/registration-terms.react.js b/native/account/registration/registration-terms.react.js
--- a/native/account/registration/registration-terms.react.js
+++ b/native/account/registration/registration-terms.react.js
@@ -29,11 +29,11 @@
};
const onTermsOfUsePressed = () => {
- Linking.openURL('https://comm.app/terms');
+ void Linking.openURL('https://comm.app/terms');
};
const onPrivacyPolicyPressed = () => {
- Linking.openURL('https://comm.app/privacy');
+ void Linking.openURL('https://comm.app/privacy');
};
type Props = {
diff --git a/native/account/registration/username-selection.react.js b/native/account/registration/username-selection.react.js
--- a/native/account/registration/username-selection.react.js
+++ b/native/account/registration/username-selection.react.js
@@ -88,7 +88,7 @@
}
const searchPromise = exactSearchUserCall(username);
- dispatchActionPromise(exactSearchUserActionTypes, searchPromise);
+ void dispatchActionPromise(exactSearchUserActionTypes, searchPromise);
const { userInfo } = await searchPromise;
if (userInfo) {
diff --git a/native/account/siwe-hooks.js b/native/account/siwe-hooks.js
--- a/native/account/siwe-hooks.js
+++ b/native/account/siwe-hooks.js
@@ -88,7 +88,7 @@
callServerEndpointOptions,
);
- dispatchActionPromise(
+ void dispatchActionPromise(
siweAuthActionTypes,
siwePromise,
undefined,
diff --git a/native/account/siwe-panel.react.js b/native/account/siwe-panel.react.js
--- a/native/account/siwe-panel.react.js
+++ b/native/account/siwe-panel.react.js
@@ -81,8 +81,8 @@
React.useState<?string>(null);
React.useEffect(() => {
- (async () => {
- dispatchActionPromise(
+ void (async () => {
+ void dispatchActionPromise(
getSIWENonceActionTypes,
(async () => {
const response = await getSIWENonceCall();
diff --git a/native/account/terms-and-privacy-modal.react.js b/native/account/terms-and-privacy-modal.react.js
--- a/native/account/terms-and-privacy-modal.react.js
+++ b/native/account/terms-and-privacy-modal.react.js
@@ -180,11 +180,11 @@
};
const onTermsOfUsePressed = () => {
- Linking.openURL('https://comm.app/terms');
+ void Linking.openURL('https://comm.app/terms');
};
const onPrivacyPolicyPressed = () => {
- Linking.openURL('https://comm.app/privacy');
+ void Linking.openURL('https://comm.app/privacy');
};
export default TermsAndPrivacyModal;
diff --git a/native/android/upload-aab.js b/native/android/upload-aab.js
--- a/native/android/upload-aab.js
+++ b/native/android/upload-aab.js
@@ -42,4 +42,4 @@
}
}
-main();
+void main();
diff --git a/native/backup/backup-handler.js b/native/backup/backup-handler.js
--- a/native/backup/backup-handler.js
+++ b/native/backup/backup-handler.js
@@ -32,7 +32,7 @@
const { uploadBackupProtocol } = useClientBackup();
React.useEffect(() => {
- (async () => {
+ void (async () => {
if (
!isBackupEnabled ||
!loggedIn ||
diff --git a/native/calendar/calendar.react.js b/native/calendar/calendar.react.js
--- a/native/calendar/calendar.react.js
+++ b/native/calendar/calendar.react.js
@@ -327,7 +327,7 @@
// centering but can be off when there is a particularly large Entry in
// the list. scrollToToday lets us actually center, but gets overriden
// by initialScrollIndex if we call it right after the FlatList mounts
- sleep(50).then(() => this.scrollToToday());
+ void sleep(50).then(() => this.scrollToToday());
}
return;
}
@@ -361,7 +361,7 @@
// current calendar query gets reset due to inactivity, let's reset the
// scroll position to the center (today)
if (!this.props.calendarActive) {
- sleep(50).then(() => this.scrollToToday());
+ void sleep(50).then(() => this.scrollToToday());
}
this.firstScrollComplete = false;
} else if (newStartDate < lastStartDate) {
@@ -1000,7 +1000,7 @@
};
dispatchCalendarQueryUpdate(calendarQuery: CalendarQuery) {
- this.props.dispatchActionPromise(
+ void this.props.dispatchActionPromise(
updateCalendarQueryActionTypes,
this.props.updateCalendarQuery({ calendarQuery }),
);
diff --git a/native/calendar/entry.react.js b/native/calendar/entry.react.js
--- a/native/calendar/entry.react.js
+++ b/native/calendar/entry.react.js
@@ -515,7 +515,7 @@
textInput => {
this.textInput = textInput;
if (textInput && this.state.editing) {
- this.enterEditMode();
+ void this.enterEditMode();
}
};
@@ -619,12 +619,12 @@
this.guardedSetState({ loadingStatus: 'loading' });
if (!serverID) {
- this.props.dispatchActionPromise(
+ void this.props.dispatchActionPromise(
createEntryActionTypes,
this.createAction(newText),
);
} else {
- this.props.dispatchActionPromise(
+ void this.props.dispatchActionPromise(
saveEntryActionTypes,
this.saveAction(serverID, newText),
);
@@ -736,7 +736,7 @@
this.deleted = true;
LayoutAnimation.easeInEaseOut();
const { localID } = this.props.entryInfo;
- this.props.dispatchActionPromise(
+ void this.props.dispatchActionPromise(
deleteEntryActionTypes,
this.deleteAction(serverID),
undefined,
diff --git a/native/chat/chat-input-bar.react.js b/native/chat/chat-input-bar.react.js
--- a/native/chat/chat-input-bar.react.js
+++ b/native/chat/chat-input-bar.react.js
@@ -1169,7 +1169,10 @@
};
onPressJoin = () => {
- this.props.dispatchActionPromise(joinThreadActionTypes, this.joinAction());
+ void this.props.dispatchActionPromise(
+ joinThreadActionTypes,
+ this.joinAction(),
+ );
};
async joinAction(): Promise<ThreadJoinPayload> {
diff --git a/native/chat/compose-subchannel.react.js b/native/chat/compose-subchannel.react.js
--- a/native/chat/compose-subchannel.react.js
+++ b/native/chat/compose-subchannel.react.js
@@ -122,7 +122,7 @@
const dispatchActionPromise = useDispatchActionPromise();
const dispatchNewChatThreadAction = React.useCallback(() => {
setCreateButtonEnabled(false);
- dispatchActionPromise(newThreadActionTypes, newChatThreadAction());
+ void dispatchActionPromise(newThreadActionTypes, newChatThreadAction());
}, [dispatchActionPromise, newChatThreadAction]);
const userInfoInputArrayEmpty = userInfoInputArray.length === 0;
diff --git a/native/chat/failed-send.react.js b/native/chat/failed-send.react.js
--- a/native/chat/failed-send.react.js
+++ b/native/chat/failed-send.react.js
@@ -142,7 +142,7 @@
);
const { localID } = rawMessageInfo;
invariant(localID, 'failed RawMessageInfo should have localID');
- inputState.retryMessage(
+ void inputState.retryMessage(
localID,
this.props.item.threadInfo,
this.props.parentThreadInfo,
diff --git a/native/chat/message-list.react.js b/native/chat/message-list.react.js
--- a/native/chat/message-list.react.js
+++ b/native/chat/message-list.react.js
@@ -303,7 +303,7 @@
const { oldestMessageServerID } = this.props;
const threadID = this.props.threadInfo.id;
- (async () => {
+ void (async () => {
try {
if (oldestMessageServerID) {
await this.props.dispatchActionPromise(
diff --git a/native/chat/message-report-utils.js b/native/chat/message-report-utils.js
--- a/native/chat/message-report-utils.js
+++ b/native/chat/message-report-utils.js
@@ -51,7 +51,10 @@
throw e;
}
})();
- dispatchActionPromise(sendMessageReportActionTypes, messageReportPromise);
+ void dispatchActionPromise(
+ sendMessageReportActionTypes,
+ messageReportPromise,
+ );
}, [callSendMessageReport, messageID, dispatchActionPromise]);
}
diff --git a/native/chat/message-results-screen.react.js b/native/chat/message-results-screen.react.js
--- a/native/chat/message-results-screen.react.js
+++ b/native/chat/message-results-screen.react.js
@@ -58,7 +58,7 @@
const userInfos = useSelector(state => state.userStore.userInfos);
React.useEffect(() => {
- (async () => {
+ void (async () => {
const result = await callFetchPinnedMessages({ threadID });
setRawMessageResults(result.pinnedMessages);
})();
diff --git a/native/chat/reaction-message-utils.js b/native/chat/reaction-message-utils.js
--- a/native/chat/reaction-message-utils.js
+++ b/native/chat/reaction-message-utils.js
@@ -90,7 +90,7 @@
action,
};
- dispatchActionPromise(
+ void dispatchActionPromise(
sendReactionMessageActionTypes,
reactionMessagePromise,
undefined,
diff --git a/native/chat/settings/add-users-modal.react.js b/native/chat/settings/add-users-modal.react.js
--- a/native/chat/settings/add-users-modal.react.js
+++ b/native/chat/settings/add-users-modal.react.js
@@ -108,7 +108,10 @@
if (userInfoInputArrayEmpty) {
return;
}
- dispatchActionPromise(changeThreadSettingsActionTypes, addUsersToThread());
+ void dispatchActionPromise(
+ changeThreadSettingsActionTypes,
+ addUsersToThread(),
+ );
}, [userInfoInputArrayEmpty, dispatchActionPromise, addUsersToThread]);
const changeThreadSettingsLoadingStatus = useSelector(
diff --git a/native/chat/settings/color-selector-modal.react.js b/native/chat/settings/color-selector-modal.react.js
--- a/native/chat/settings/color-selector-modal.react.js
+++ b/native/chat/settings/color-selector-modal.react.js
@@ -121,7 +121,7 @@
const action = changeThreadSettingsActionTypes.started;
const threadID = props.route.params.threadInfo.id;
- dispatchActionPromise(
+ void dispatchActionPromise(
changeThreadSettingsActionTypes,
editColor(colorEditValue),
{
diff --git a/native/chat/settings/delete-thread.react.js b/native/chat/settings/delete-thread.react.js
--- a/native/chat/settings/delete-thread.react.js
+++ b/native/chat/settings/delete-thread.react.js
@@ -179,7 +179,7 @@
};
dispatchDeleteThreadAction = () => {
- this.props.dispatchActionPromise(
+ void this.props.dispatchActionPromise(
deleteThreadActionTypes,
this.deleteThread(),
);
diff --git a/native/chat/settings/thread-settings-description.react.js b/native/chat/settings/thread-settings-description.react.js
--- a/native/chat/settings/thread-settings-description.react.js
+++ b/native/chat/settings/thread-settings-description.react.js
@@ -251,14 +251,14 @@
const action = changeThreadSettingsActionTypes.started;
const threadID = this.props.threadInfo.id;
- this.props.dispatchActionPromise(
+ void this.props.dispatchActionPromise(
changeThreadSettingsActionTypes,
editDescriptionPromise,
{
customKeyName: `${action}:${threadID}:description`,
},
);
- editDescriptionPromise.then(() => {
+ void editDescriptionPromise.then(() => {
this.props.setDescriptionEditValue(null);
});
};
diff --git a/native/chat/settings/thread-settings-edit-relationship.react.js b/native/chat/settings/thread-settings-edit-relationship.react.js
--- a/native/chat/settings/thread-settings-edit-relationship.react.js
+++ b/native/chat/settings/thread-settings-edit-relationship.react.js
@@ -76,7 +76,7 @@
const dispatchActionPromise = useDispatchActionPromise();
const onButtonPress = React.useCallback(() => {
- dispatchActionPromise(
+ void dispatchActionPromise(
updateRelationshipsActionTypes,
updateRelationship(relationshipAction),
);
diff --git a/native/chat/settings/thread-settings-home-notifs.react.js b/native/chat/settings/thread-settings-home-notifs.react.js
--- a/native/chat/settings/thread-settings-home-notifs.react.js
+++ b/native/chat/settings/thread-settings-home-notifs.react.js
@@ -84,7 +84,7 @@
onValueChange = (value: boolean) => {
this.setState({ currentValue: value });
- this.props.dispatchActionPromise(
+ void this.props.dispatchActionPromise(
updateSubscriptionActionTypes,
this.props.updateSubscription({
threadID: this.props.threadInfo.id,
diff --git a/native/chat/settings/thread-settings-leave-thread.react.js b/native/chat/settings/thread-settings-leave-thread.react.js
--- a/native/chat/settings/thread-settings-leave-thread.react.js
+++ b/native/chat/settings/thread-settings-leave-thread.react.js
@@ -112,7 +112,7 @@
onConfirmLeaveThread = () => {
const threadID = this.props.threadInfo.id;
- this.props.dispatchActionPromise(
+ void this.props.dispatchActionPromise(
leaveThreadActionTypes,
this.leaveThread(),
{
diff --git a/native/chat/settings/thread-settings-media-gallery.react.js b/native/chat/settings/thread-settings-media-gallery.react.js
--- a/native/chat/settings/thread-settings-media-gallery.react.js
+++ b/native/chat/settings/thread-settings-media-gallery.react.js
@@ -60,7 +60,7 @@
});
setMediaInfos(result.media);
};
- fetchData();
+ void fetchData();
}, [callFetchThreadMedia, threadID, limit]);
const memoizedStyles = React.useMemo(() => {
diff --git a/native/chat/settings/thread-settings-name.react.js b/native/chat/settings/thread-settings-name.react.js
--- a/native/chat/settings/thread-settings-name.react.js
+++ b/native/chat/settings/thread-settings-name.react.js
@@ -178,14 +178,14 @@
const action = changeThreadSettingsActionTypes.started;
const threadID = this.props.threadInfo.id;
- this.props.dispatchActionPromise(
+ void this.props.dispatchActionPromise(
changeThreadSettingsActionTypes,
editNamePromise,
{
customKeyName: `${action}:${threadID}:name`,
},
);
- editNamePromise.then(() => {
+ void editNamePromise.then(() => {
this.props.setNameEditValue(null);
});
};
diff --git a/native/chat/settings/thread-settings-push-notifs.react.js b/native/chat/settings/thread-settings-push-notifs.react.js
--- a/native/chat/settings/thread-settings-push-notifs.react.js
+++ b/native/chat/settings/thread-settings-push-notifs.react.js
@@ -111,7 +111,7 @@
onValueChange = (value: boolean) => {
this.setState({ currentValue: value });
- this.props.dispatchActionPromise(
+ void this.props.dispatchActionPromise(
updateSubscriptionActionTypes,
this.props.updateSubscription({
threadID: this.props.threadInfo.id,
diff --git a/native/chat/toggle-pin-modal.react.js b/native/chat/toggle-pin-modal.react.js
--- a/native/chat/toggle-pin-modal.react.js
+++ b/native/chat/toggle-pin-modal.react.js
@@ -76,7 +76,7 @@
}, [callToggleMessagePin, messageInfo.id, modalInfo.action]);
const onPress = React.useCallback(() => {
- dispatchActionPromise(
+ void dispatchActionPromise(
toggleMessagePinActionTypes,
createToggleMessagePinPromise(),
);
diff --git a/native/community-creation/community-configuration.react.js b/native/community-creation/community-configuration.react.js
--- a/native/community-creation/community-configuration.react.js
+++ b/native/community-creation/community-configuration.react.js
@@ -91,7 +91,7 @@
const createNewCommunity = React.useCallback(async () => {
setErrorMessage();
const newThreadResultPromise = callCreateNewCommunity();
- dispatchActionPromise(newThreadActionTypes, newThreadResultPromise);
+ void dispatchActionPromise(newThreadActionTypes, newThreadResultPromise);
const newThreadResult = await newThreadResultPromise;
navigate<'CommunityCreationMembers'>({
diff --git a/native/community-creation/community-creation-members.react.js b/native/community-creation/community-creation-members.react.js
--- a/native/community-creation/community-creation-members.react.js
+++ b/native/community-creation/community-creation-members.react.js
@@ -85,7 +85,7 @@
const communityThreadInfo = threadInfos[threadID];
const addSelectedUsersToCommunity = React.useCallback(() => {
- dispatchActionPromise(
+ void dispatchActionPromise(
changeThreadSettingsActionTypes,
(async () => {
const result = await callChangeThreadSettings({
diff --git a/native/components/feature-flags-provider.react.js b/native/components/feature-flags-provider.react.js
--- a/native/components/feature-flags-provider.react.js
+++ b/native/components/feature-flags-provider.react.js
@@ -39,7 +39,7 @@
const [featuresConfig, setFeaturesConfig] = React.useState(defaultContext);
React.useEffect(() => {
- (async () => {
+ void (async () => {
if (featuresConfig.loadedFromService) {
return;
}
@@ -63,7 +63,7 @@
}, [featuresConfig.loadedFromService]);
React.useEffect(() => {
- (async () => {
+ void (async () => {
try {
const config = await tryMultipleTimes(
() => fetchFeatureFlags(Platform.OS, isStaff, codeVersion),
diff --git a/native/components/version-supported.react.js b/native/components/version-supported.react.js
--- a/native/components/version-supported.react.js
+++ b/native/components/version-supported.react.js
@@ -25,7 +25,10 @@
const onUsernameAlertAcknowledged = React.useCallback(() => {
if (loggedIn) {
- dispatchActionPromise(logOutActionTypes, callLogOut(preRequestUserState));
+ void dispatchActionPromise(
+ logOutActionTypes,
+ callLogOut(preRequestUserState),
+ );
}
}, [callLogOut, dispatchActionPromise, loggedIn, preRequestUserState]);
@@ -56,7 +59,7 @@
return;
}
hasRun.current = true;
- checkVersionSupport();
+ void checkVersionSupport();
}, [checkVersionSupport]);
return null;
diff --git a/native/crash.react.js b/native/crash.react.js
--- a/native/crash.react.js
+++ b/native/crash.react.js
@@ -79,8 +79,11 @@
if (this.state.doneWaiting) {
return;
}
- this.props.dispatchActionPromise(sendReportActionTypes, this.sendReport());
- this.timeOut();
+ void this.props.dispatchActionPromise(
+ sendReportActionTypes,
+ this.sendReport(),
+ );
+ void this.timeOut();
}
async timeOut() {
@@ -189,7 +192,10 @@
if (!this.state.doneWaiting) {
return;
}
- this.props.dispatchActionPromise(logOutActionTypes, this.logOutAndExit());
+ void this.props.dispatchActionPromise(
+ logOutActionTypes,
+ this.logOutAndExit(),
+ );
};
async logOutAndExit() {
diff --git a/native/data/sqlite-data-handler.js b/native/data/sqlite-data-handler.js
--- a/native/data/sqlite-data-handler.js
+++ b/native/data/sqlite-data-handler.js
@@ -137,7 +137,7 @@
const databaseNeedsDeletion = commCoreModule.checkIfDatabaseNeedsDeletion();
if (databaseNeedsDeletion) {
- (async () => {
+ void (async () => {
try {
await callClearSensitiveData('detecting corrupted database');
} catch (e) {
@@ -164,7 +164,7 @@
dispatch({ type: setStoreLoadedActionType });
return;
}
- (async () => {
+ void (async () => {
await Promise.all([
sensitiveDataHandled,
mediaCacheContext?.evictCache(),
diff --git a/native/input/input-state-container.react.js b/native/input/input-state-container.react.js
--- a/native/input/input-state-container.react.js
+++ b/native/input/input-state-container.react.js
@@ -292,7 +292,7 @@
rawMessageInfo.type === messageTypes.MULTIMEDIA,
`rawMessageInfo ${localMessageID} should be multimedia`,
);
- this.dispatchMultimediaMessageAction(rawMessageInfo);
+ void this.dispatchMultimediaMessageAction(rawMessageInfo);
}
}
@@ -300,7 +300,7 @@
messageInfo: RawMultimediaMessageInfo,
): Promise<void> {
if (!threadIsPending(messageInfo.threadID)) {
- this.props.dispatchActionPromise(
+ void this.props.dispatchActionPromise(
sendMultimediaMessageActionTypes,
this.sendMultimediaMessageAction(messageInfo),
undefined,
@@ -351,7 +351,7 @@
threadID: newThreadID,
time: Date.now(),
};
- this.props.dispatchActionPromise(
+ void this.props.dispatchActionPromise(
sendMultimediaMessageActionTypes,
this.sendMultimediaMessageAction(newMessageInfo),
undefined,
@@ -460,7 +460,7 @@
}
if (!threadIsPending(inputThreadInfo.id)) {
- this.props.dispatchActionPromise(
+ void this.props.dispatchActionPromise(
sendTextMessageActionTypes,
this.sendTextMessageAction(
messageInfo,
@@ -530,7 +530,7 @@
id: newThreadID,
};
- this.props.dispatchActionPromise(
+ void this.props.dispatchActionPromise(
sendTextMessageActionTypes,
this.sendTextMessageAction(
newMessageInfo,
@@ -612,7 +612,7 @@
) => {
this.sendCallbacks.forEach(callback => callback());
const localMessageID = this.props.nextLocalID;
- this.startThreadCreation(threadInfo);
+ void this.startThreadCreation(threadInfo);
if (threadIsPendingSidebar(threadInfo.id)) {
this.pendingSidebarCreationMessageLocalIDs.add(localMessageID);
@@ -1357,7 +1357,7 @@
const now = Date.now();
- this.startThreadCreation(threadInfo);
+ void this.startThreadCreation(threadInfo);
if (threadIsPendingSidebar(threadInfo.id)) {
this.pendingSidebarCreationMessageLocalIDs.add(localMessageID);
@@ -1483,7 +1483,7 @@
}
}
if (incompleteMedia.length === 0) {
- this.dispatchMultimediaMessageAction(newRawMessageInfo);
+ void this.dispatchMultimediaMessageAction(newRawMessageInfo);
this.setState(prevState => ({
pendingUploads: {
...prevState.pendingUploads,
diff --git a/native/keyboard/keyboard-state-container.react.js b/native/keyboard/keyboard-state-container.react.js
--- a/native/keyboard/keyboard-state-container.react.js
+++ b/native/keyboard/keyboard-state-container.react.js
@@ -67,7 +67,7 @@
return;
}
if (this.state.mediaGalleryOpen && !prevState.mediaGalleryOpen) {
- (async () => {
+ void (async () => {
await sleep(tabBarAnimationDuration);
await waitForInteractions();
this.setState({ renderKeyboardInputHost: true });
diff --git a/native/markdown/markdown-utils.js b/native/markdown/markdown-utils.js
--- a/native/markdown/markdown-utils.js
+++ b/native/markdown/markdown-utils.js
@@ -64,7 +64,7 @@
const url = normalizeURL(inputURL);
const onConfirm = React.useCallback(() => {
onDismiss();
- Linking.openURL(url);
+ void Linking.openURL(url);
}, [url, onDismiss]);
let displayURL = url.substring(0, 64);
diff --git a/native/media/camera-modal.react.js b/native/media/camera-modal.react.js
--- a/native/media/camera-modal.react.js
+++ b/native/media/camera-modal.react.js
@@ -550,7 +550,7 @@
}
if (this.props.foreground && !prevProps.foreground && this.camera) {
- this.camera.refreshAuthorizationStatus();
+ void this.camera.refreshAuthorizationStatus();
}
if (this.state.stagingMode && !prevState.stagingMode) {
@@ -573,7 +573,9 @@
!this.state.pendingPhotoCapture &&
prevState.pendingPhotoCapture
) {
- CameraModal.cleanUpPendingPhotoCapture(prevState.pendingPhotoCapture);
+ void CameraModal.cleanUpPendingPhotoCapture(
+ prevState.pendingPhotoCapture,
+ );
this.sendButtonProgress.setValue(0);
}
}
@@ -620,7 +622,7 @@
...
}): React.Node => {
if (camera && camera._cameraHandle) {
- this.fetchCameraIDs(camera);
+ void this.fetchCameraIDs(camera);
}
if (this.state.stagingMode) {
return this.renderStagingView();
diff --git a/native/media/encrypted-image.react.js b/native/media/encrypted-image.react.js
--- a/native/media/encrypted-image.react.js
+++ b/native/media/encrypted-image.react.js
@@ -83,7 +83,7 @@
if (isMounted) {
if (result.success) {
- mediaCache?.set(blobURI, result.uri);
+ void mediaCache?.set(blobURI, result.uri);
setSource({ uri: result.uri });
} else {
setErrorOccured(true);
@@ -91,7 +91,7 @@
}
};
- loadDecrypted();
+ void loadDecrypted();
return () => {
isMounted = false;
diff --git a/native/media/media-gallery-keyboard.react.js b/native/media/media-gallery-keyboard.react.js
--- a/native/media/media-gallery-keyboard.react.js
+++ b/native/media/media-gallery-keyboard.react.js
@@ -160,7 +160,7 @@
componentDidMount() {
this.mounted = true;
- this.fetchPhotos();
+ void this.fetchPhotos();
}
componentWillUnmount() {
@@ -219,7 +219,7 @@
}
if (this.props.foreground && !prevProps.foreground) {
- this.fetchPhotos();
+ void this.fetchPhotos();
}
if (
@@ -559,7 +559,7 @@
onEndReached = () => {
const { cursor } = this.state;
if (cursor !== null) {
- this.fetchPhotos(cursor);
+ void this.fetchPhotos(cursor);
}
};
diff --git a/native/media/video-playback-modal.react.js b/native/media/video-playback-modal.react.js
--- a/native/media/video-playback-modal.react.js
+++ b/native/media/video-playback-modal.react.js
@@ -134,7 +134,7 @@
}
}
};
- loadDecrypted();
+ void loadDecrypted();
return () => {
isMounted = false;
diff --git a/native/media/video-utils.js b/native/media/video-utils.js
--- a/native/media/video-utils.js
+++ b/native/media/video-utils.js
@@ -100,7 +100,7 @@
const thumbnailStep = await generateThumbnail(path, plan.thumbnailPath);
steps.push(thumbnailStep);
if (!thumbnailStep.success) {
- unlink(plan.thumbnailPath);
+ void unlink(plan.thumbnailPath);
return {
steps,
result: { success: false, reason: 'video_generate_thumbnail_failed' },
@@ -131,8 +131,8 @@
steps.push(thumbnailStep, transcodeStep);
if (!thumbnailStep.success) {
- unlink(plan.outputPath);
- unlink(plan.thumbnailPath);
+ void unlink(plan.outputPath);
+ void unlink(plan.thumbnailPath);
return {
steps,
result: {
@@ -142,8 +142,8 @@
};
}
if (!transcodeStep.success) {
- unlink(plan.outputPath);
- unlink(plan.thumbnailPath);
+ void unlink(plan.outputPath);
+ void unlink(plan.thumbnailPath);
return {
steps,
result: {
@@ -156,8 +156,8 @@
const transcodeProbeStep = await checkVideoInfo(plan.outputPath);
steps.push(transcodeProbeStep);
if (!transcodeProbeStep.validFormat) {
- unlink(plan.outputPath);
- unlink(plan.thumbnailPath);
+ void unlink(plan.outputPath);
+ void unlink(plan.thumbnailPath);
return {
steps,
result: { success: false, reason: 'video_transcode_failed' },
diff --git a/native/navigation/app-navigator.react.js b/native/navigation/app-navigator.react.js
--- a/native/navigation/app-navigator.react.js
+++ b/native/navigation/app-navigator.react.js
@@ -84,7 +84,7 @@
return;
}
splashScreenHasHidden = true;
- (async () => {
+ void (async () => {
await waitForInteractions();
try {
await SplashScreen.hideAsync();
diff --git a/native/navigation/deep-links-context-provider.react.js b/native/navigation/deep-links-context-provider.react.js
--- a/native/navigation/deep-links-context-provider.react.js
+++ b/native/navigation/deep-links-context-provider.react.js
@@ -55,7 +55,7 @@
// We're also checking if the app was opened by using a link.
// In that case the listener won't be called and we're instead checking
// if the initial URL is set.
- (async () => {
+ void (async () => {
const initialURL = await Linking.getInitialURL();
if (initialURL) {
setCurrentLink(initialURL);
@@ -87,7 +87,7 @@
const validateLink = useServerCall(verifyInviteLink);
const navigation = useNavigation();
React.useEffect(() => {
- (async () => {
+ void (async () => {
if (!loggedIn || !currentLink) {
return;
}
@@ -103,7 +103,10 @@
if (parsedData.type === 'invite-link') {
const { secret } = parsedData.data;
const validateLinkPromise = validateLink({ secret });
- dispatchActionPromise(verifyInviteLinkActionTypes, validateLinkPromise);
+ void dispatchActionPromise(
+ verifyInviteLinkActionTypes,
+ validateLinkPromise,
+ );
const result = await validateLinkPromise;
if (result.status === 'already_joined') {
return;
diff --git a/native/navigation/invite-link-modal.react.js b/native/navigation/invite-link-modal.react.js
--- a/native/navigation/invite-link-modal.react.js
+++ b/native/navigation/invite-link-modal.react.js
@@ -111,7 +111,10 @@
}, [calendarQuery, callJoinThread, communityID, props.navigation, secret]);
const dispatchActionPromise = useDispatchActionPromise();
const joinCommunity = React.useCallback(() => {
- dispatchActionPromise(joinThreadActionTypes, createJoinCommunityAction());
+ void dispatchActionPromise(
+ joinThreadActionTypes,
+ createJoinCommunityAction(),
+ );
}, [createJoinCommunityAction, dispatchActionPromise]);
const joinThreadLoadingStatus = useSelector(joinThreadLoadingStatusSelector);
diff --git a/native/profile/default-notifications-preferences.react.js b/native/profile/default-notifications-preferences.react.js
--- a/native/profile/default-notifications-preferences.react.js
+++ b/native/profile/default-notifications-preferences.react.js
@@ -125,7 +125,7 @@
selectNotificationSetting = (data: NotificationTypes) => {
const { dispatchActionPromise } = this.props;
- dispatchActionPromise(
+ void dispatchActionPromise(
setUserSettingsActionTypes,
this.updatedDefaultNotifications(data),
);
diff --git a/native/profile/delete-account.react.js b/native/profile/delete-account.react.js
--- a/native/profile/delete-account.react.js
+++ b/native/profile/delete-account.react.js
@@ -62,7 +62,10 @@
}, [callDeleteAccount, preRequestUserState]);
const onDelete = React.useCallback(() => {
- dispatchActionPromise(deleteKeyserverAccountActionTypes, deleteAction());
+ void dispatchActionPromise(
+ deleteKeyserverAccountActionTypes,
+ deleteAction(),
+ );
}, [dispatchActionPromise, deleteAction]);
return (
diff --git a/native/profile/edit-password.react.js b/native/profile/edit-password.react.js
--- a/native/profile/edit-password.react.js
+++ b/native/profile/edit-password.react.js
@@ -274,7 +274,7 @@
} else if (this.state.newPassword === this.state.currentPassword) {
this.goBackOnce();
} else {
- this.props.dispatchActionPromise(
+ void this.props.dispatchActionPromise(
changeUserPasswordActionTypes,
this.savePassword(),
);
diff --git a/native/profile/profile-screen.react.js b/native/profile/profile-screen.react.js
--- a/native/profile/profile-screen.react.js
+++ b/native/profile/profile-screen.react.js
@@ -360,7 +360,7 @@
};
logOut() {
- this.props.dispatchActionPromise(
+ void this.props.dispatchActionPromise(
logOutActionTypes,
this.props.logOut(this.props.preRequestUserState),
);
diff --git a/native/profile/relationship-list-item.react.js b/native/profile/relationship-list-item.react.js
--- a/native/profile/relationship-list-item.react.js
+++ b/native/profile/relationship-list-item.react.js
@@ -294,7 +294,7 @@
onPressUpdateFriendship(action: RelationshipAction) {
const { id } = this.props.userInfo;
const customKeyName = `${updateRelationshipsActionTypes.started}:${id}`;
- this.props.dispatchActionPromise(
+ void this.props.dispatchActionPromise(
updateRelationshipsActionTypes,
this.updateFriendship(action),
{ customKeyName },
diff --git a/native/profile/relationship-list.react.js b/native/profile/relationship-list.react.js
--- a/native/profile/relationship-list.react.js
+++ b/native/profile/relationship-list.react.js
@@ -234,7 +234,7 @@
if (noCurrentTags) {
return;
}
- dispatchActionPromise(
+ void dispatchActionPromise(
updateRelationshipsActionTypes,
updateRelationshipsOnServer(),
);
diff --git a/native/profile/secondary-device-qr-code-scanner.react.js b/native/profile/secondary-device-qr-code-scanner.react.js
--- a/native/profile/secondary-device-qr-code-scanner.react.js
+++ b/native/profile/secondary-device-qr-code-scanner.react.js
@@ -27,7 +27,7 @@
const navigation = useNavigation();
React.useEffect(() => {
- (async () => {
+ void (async () => {
const { status } = await BarCodeScanner.requestPermissionsAsync();
setHasPermission(status === 'granted');
diff --git a/native/profile/user-relationship-tooltip-modal.react.js b/native/profile/user-relationship-tooltip-modal.react.js
--- a/native/profile/user-relationship-tooltip-modal.react.js
+++ b/native/profile/user-relationship-tooltip-modal.react.js
@@ -60,7 +60,7 @@
};
const onConfirmRemoveUser = () => {
const customKeyName = `${updateRelationshipsActionTypes.started}:${input.relativeUserInfo.id}`;
- dispatchActionPromise(
+ void dispatchActionPromise(
updateRelationshipsActionTypes,
callRemoveRelationships(),
{ customKeyName },
diff --git a/native/push/push-handler.react.js b/native/push/push-handler.react.js
--- a/native/push/push-handler.react.js
+++ b/native/push/push-handler.react.js
@@ -246,7 +246,7 @@
onForeground() {
if (this.props.loggedIn) {
- this.ensurePushNotifsEnabled();
+ void this.ensurePushNotifsEnabled();
} else {
// We do this in case there was a crash, so we can clear deviceToken from
// any other cookies it might be set for
@@ -284,13 +284,13 @@
}
if (this.props.loggedIn && !prevProps.loggedIn) {
- this.ensurePushNotifsEnabled();
+ void this.ensurePushNotifsEnabled();
} else {
for (const keyserverID in this.props.deviceTokens) {
const deviceToken = this.props.deviceTokens[keyserverID];
const prevDeviceToken = prevProps.deviceTokens[keyserverID];
if (!deviceToken && prevDeviceToken) {
- this.ensurePushNotifsEnabled();
+ void this.ensurePushNotifsEnabled();
break;
}
}
@@ -468,14 +468,14 @@
};
setDeviceToken(deviceTokens: DeviceTokens) {
- this.props.dispatchActionPromise(
+ void this.props.dispatchActionPromise(
setDeviceTokenActionTypes,
this.props.setDeviceToken(deviceTokens),
);
}
setAllDeviceTokensNull = () => {
- this.props.dispatchActionPromise(
+ void this.props.dispatchActionPromise(
setDeviceTokenActionTypes,
this.props.setDeviceTokenFanout(null),
);
diff --git a/native/qr-code/qr-code-screen.react.js b/native/qr-code/qr-code-screen.react.js
--- a/native/qr-code/qr-code-screen.react.js
+++ b/native/qr-code/qr-code-screen.react.js
@@ -37,7 +37,7 @@
}, []);
React.useEffect(() => {
- generateQRCode();
+ void generateQRCode();
}, [generateQRCode]);
const styles = useStyles(unboundStyles);
diff --git a/native/redux/persist.js b/native/redux/persist.js
--- a/native/redux/persist.js
+++ b/native/redux/persist.js
@@ -290,7 +290,7 @@
for (const key in state.drafts) {
const value = state.drafts[key];
try {
- commCoreModule.updateDraft(key, value);
+ void commCoreModule.updateDraft(key, value);
} catch (e) {
if (!isTaskCancelledError(e)) {
throw e;
diff --git a/native/redux/redux-setup.js b/native/redux/redux-setup.js
--- a/native/redux/redux-setup.js
+++ b/native/redux/redux-setup.js
@@ -248,7 +248,7 @@
...fixUnreadActiveThreadResult.threadStoreOperations,
];
- processDBStoreOperations({
+ void processDBStoreOperations({
draftStoreOperations,
messageStoreOperations,
threadStoreOperations: threadStoreOperationsWithUnreadFix,
diff --git a/native/roles/change-roles-header-right-button.react.js b/native/roles/change-roles-header-right-button.react.js
--- a/native/roles/change-roles-header-right-button.react.js
+++ b/native/roles/change-roles-header-right-button.react.js
@@ -46,7 +46,7 @@
return;
}
- dispatchActionPromise(
+ void dispatchActionPromise(
changeThreadMemberRolesActionTypes,
callChangeThreadMemberRoles({
threadID: threadInfo.id,
diff --git a/native/roles/create-roles-header-right-button.react.js b/native/roles/create-roles-header-right-button.react.js
--- a/native/roles/create-roles-header-right-button.react.js
+++ b/native/roles/create-roles-header-right-button.react.js
@@ -60,7 +60,7 @@
};
}
- dispatchActionPromise(
+ void dispatchActionPromise(
modifyCommunityRoleActionTypes,
callModifyCommunityRole(callModifyCommunityRoleParams),
);
diff --git a/native/roles/role-utils.react.js b/native/roles/role-utils.react.js
--- a/native/roles/role-utils.react.js
+++ b/native/roles/role-utils.react.js
@@ -23,7 +23,7 @@
const dispatchActionPromise = useDispatchActionPromise();
const onDeleteRole = React.useCallback(() => {
- dispatchActionPromise(
+ void dispatchActionPromise(
deleteCommunityRoleActionTypes,
callDeleteCommunityRole({
community: threadInfo.id,
diff --git a/native/root.react.js b/native/root.react.js
--- a/native/root.react.js
+++ b/native/root.react.js
@@ -126,7 +126,7 @@
React.useEffect(() => {
Orientation.lockToPortrait();
- (async () => {
+ void (async () => {
let loadedState = initialState;
if (__DEV__) {
try {
@@ -195,7 +195,7 @@
return;
}
- (async () => {
+ void (async () => {
try {
await AsyncStorage.setItem(
navStateAsyncStorageKey,
diff --git a/native/socket.react.js b/native/socket.react.js
--- a/native/socket.react.js
+++ b/native/socket.react.js
@@ -118,7 +118,7 @@
const socketCrashLoopRecovery = React.useCallback(async () => {
if (!accountHasPassword(currentUserInfo)) {
- dispatchActionPromise(
+ void dispatchActionPromise(
logOutActionTypes,
callLogOut(preRequestUserState),
);
diff --git a/native/utils/hooks.js b/native/utils/hooks.js
--- a/native/utils/hooks.js
+++ b/native/utils/hooks.js
@@ -7,7 +7,7 @@
const [started, setStarted] = React.useState(false);
React.useEffect(() => {
- (async () => {
+ void (async () => {
if (started) {
return;
}
diff --git a/native/utils/tunnelbroker-utils.js b/native/utils/tunnelbroker-utils.js
--- a/native/utils/tunnelbroker-utils.js
+++ b/native/utils/tunnelbroker-utils.js
@@ -13,7 +13,7 @@
const accessToken = useSelector(state => state.commServicesAccessToken);
React.useEffect(() => {
- (async () => {
+ void (async () => {
const contentSigningKey = await getContentSigningKey();
setDeviceID(contentSigningKey);
})();
diff --git a/web/account/log-in-form.react.js b/web/account/log-in-form.react.js
--- a/web/account/log-in-form.react.js
+++ b/web/account/log-in-form.react.js
@@ -24,7 +24,7 @@
const getOrCreateCryptoStore = useGetOrCreateCryptoStore();
React.useEffect(() => {
- getOrCreateCryptoStore();
+ void getOrCreateCryptoStore();
}, [getOrCreateCryptoStore]);
const onQRCodeLoginButtonClick = React.useCallback(() => {
diff --git a/web/account/qr-code-login.react.js b/web/account/qr-code-login.react.js
--- a/web/account/qr-code-login.react.js
+++ b/web/account/qr-code-login.react.js
@@ -33,7 +33,7 @@
}, [ed25519Key]);
React.useEffect(() => {
- generateQRCode();
+ void generateQRCode();
}, [generateQRCode]);
return (
diff --git a/web/account/siwe-login-form.react.js b/web/account/siwe-login-form.react.js
--- a/web/account/siwe-login-form.react.js
+++ b/web/account/siwe-login-form.react.js
@@ -75,7 +75,7 @@
if (!siweNonceShouldBeFetched) {
return;
}
- dispatchActionPromise(
+ void dispatchActionPromise(
getSIWENonceActionTypes,
(async () => {
const response = await getSIWENonceCall();
diff --git a/web/account/traditional-login-form.react.js b/web/account/traditional-login-form.react.js
--- a/web/account/traditional-login-form.react.js
+++ b/web/account/traditional-login-form.react.js
@@ -120,7 +120,7 @@
}
const extraInfo = loginExtraInfo();
- dispatchActionPromise(
+ void dispatchActionPromise(
logInActionTypes,
logInAction(extraInfo),
undefined,
diff --git a/web/app.react.js b/web/app.react.js
--- a/web/app.react.js
+++ b/web/app.react.js
@@ -75,7 +75,7 @@
import { type NavInfo } from './types/nav-types.js';
import { canonicalURLFromReduxState, navInfoFromURL } from './url-utils.js';
-initOpaque();
+void initOpaque();
// We want Webpack's css-loader and style-loader to handle the Fontawesome CSS,
// so we disable the autoAddCss logic and import the CSS file. Otherwise every
diff --git a/web/calendar/calendar.react.js b/web/calendar/calendar.react.js
--- a/web/calendar/calendar.react.js
+++ b/web/calendar/calendar.react.js
@@ -232,7 +232,7 @@
...currentCalendarQuery,
...this.prevMonthDates(),
};
- this.props.dispatchActionPromise(
+ void this.props.dispatchActionPromise(
updateCalendarQueryActionTypes,
this.props.updateCalendarQuery({
calendarQuery: newCalendarQuery,
@@ -250,7 +250,7 @@
...currentCalendarQuery,
...this.nextMonthDates(),
};
- this.props.dispatchActionPromise(
+ void this.props.dispatchActionPromise(
updateCalendarQueryActionTypes,
this.props.updateCalendarQuery({
calendarQuery: newCalendarQuery,
diff --git a/web/calendar/entry.react.js b/web/calendar/entry.react.js
--- a/web/calendar/entry.react.js
+++ b/web/calendar/entry.react.js
@@ -307,12 +307,12 @@
}
if (!serverID) {
- this.props.dispatchActionPromise(
+ void this.props.dispatchActionPromise(
createEntryActionTypes,
this.createAction(newText),
);
} else {
- this.props.dispatchActionPromise(
+ void this.props.dispatchActionPromise(
saveEntryActionTypes,
this.saveAction(serverID, newText),
);
@@ -411,7 +411,7 @@
dispatchDelete(serverID: ?string, focusOnNextEntry: boolean) {
const { localID } = this.props.entryInfo;
- this.props.dispatchActionPromise(
+ void this.props.dispatchActionPromise(
deleteEntryActionTypes,
this.deleteAction(serverID, focusOnNextEntry),
undefined,
diff --git a/web/chat/chat-input-bar.react.js b/web/chat/chat-input-bar.react.js
--- a/web/chat/chat-input-bar.react.js
+++ b/web/chat/chat-input-bar.react.js
@@ -501,7 +501,7 @@
const creatorID = this.props.viewerID;
invariant(creatorID, 'should have viewer ID in order to send a message');
- this.props.inputState.sendTextMessage(
+ void this.props.inputState.sendTextMessage(
{
type: messageTypes.TEXT,
localID,
@@ -538,7 +538,10 @@
};
onClickJoin = () => {
- this.props.dispatchActionPromise(joinThreadActionTypes, this.joinAction());
+ void this.props.dispatchActionPromise(
+ joinThreadActionTypes,
+ this.joinAction(),
+ );
};
async joinAction(): Promise<ThreadJoinPayload> {
diff --git a/web/chat/chat-message-list-container.react.js b/web/chat/chat-message-list-container.react.js
--- a/web/chat/chat-message-list-container.react.js
+++ b/web/chat/chat-message-list-container.react.js
@@ -60,7 +60,7 @@
drop: item => {
const { files } = item;
if (inputState && files.length > 0) {
- inputState.appendFiles(threadInfo, files);
+ void inputState.appendFiles(threadInfo, files);
}
},
collect: monitor => ({
@@ -91,7 +91,7 @@
return;
}
e.preventDefault();
- inputState.appendFiles(threadInfo, [...files]);
+ void inputState.appendFiles(threadInfo, [...files]);
},
[inputState, threadInfo],
);
diff --git a/web/chat/chat-message-list.react.js b/web/chat/chat-message-list.react.js
--- a/web/chat/chat-message-list.react.js
+++ b/web/chat/chat-message-list.react.js
@@ -338,7 +338,7 @@
this.messageContainer = messageContainer;
// In case we already have all the most recent messages,
// but they're not enough
- this.possiblyLoadMoreMessages();
+ void this.possiblyLoadMoreMessages();
if (messageContainer) {
messageContainer.addEventListener('scroll', this.onScroll);
}
@@ -349,7 +349,7 @@
return;
}
this.props.clearTooltip();
- this.possiblyLoadMoreMessages();
+ void this.possiblyLoadMoreMessages();
this.debounceEditModeAfterScrollToMessage();
};
diff --git a/web/chat/failed-send.react.js b/web/chat/failed-send.react.js
--- a/web/chat/failed-send.react.js
+++ b/web/chat/failed-send.react.js
@@ -106,7 +106,7 @@
return;
}
this.retryingText = true;
- inputState.sendTextMessage(
+ void inputState.sendTextMessage(
{
...rawMessageInfo,
time: Date.now(),
diff --git a/web/chat/reaction-message-utils.js b/web/chat/reaction-message-utils.js
--- a/web/chat/reaction-message-utils.js
+++ b/web/chat/reaction-message-utils.js
@@ -96,7 +96,7 @@
action,
};
- dispatchActionPromise(
+ void dispatchActionPromise(
sendReactionMessageActionTypes,
reactionMessagePromise,
undefined,
diff --git a/web/chat/thread-menu.react.js b/web/chat/thread-menu.react.js
--- a/web/chat/thread-menu.react.js
+++ b/web/chat/thread-menu.react.js
@@ -195,7 +195,7 @@
const callLeaveThread = useLeaveThread();
const onConfirmLeaveThread = React.useCallback(() => {
- dispatchActionPromise(
+ void dispatchActionPromise(
leaveThreadActionTypes,
callLeaveThread({ threadID: threadInfo.id }),
);
diff --git a/web/database/database-module-provider.js b/web/database/database-module-provider.js
--- a/web/database/database-module-provider.js
+++ b/web/database/database-module-provider.js
@@ -155,6 +155,6 @@
return newModule;
}
// Start initializing the database immediately
-getDatabaseModule();
+void getDatabaseModule();
export { getDatabaseModule };
diff --git a/web/database/sqlite-data-handler.js b/web/database/sqlite-data-handler.js
--- a/web/database/sqlite-data-handler.js
+++ b/web/database/sqlite-data-handler.js
@@ -45,7 +45,7 @@
}, [currentLoggedInUserID]);
React.useEffect(() => {
- (async () => {
+ void (async () => {
const databaseModule = await getDatabaseModule();
if (!rehydrateConcluded) {
diff --git a/web/database/worker/db-worker.js b/web/database/worker/db-worker.js
--- a/web/database/worker/db-worker.js
+++ b/web/database/worker/db-worker.js
@@ -216,7 +216,7 @@
persistNeeded = true;
if (!persistInProgress) {
- persist();
+ void persist();
}
return undefined;
diff --git a/web/input/input-state-container.react.js b/web/input/input-state-container.react.js
--- a/web/input/input-state-container.react.js
+++ b/web/input/input-state-container.react.js
@@ -395,7 +395,7 @@
} else {
rawMessageInfo = this.getRawMultimediaMessageInfo(messageID);
}
- this.sendMultimediaMessage(rawMessageInfo);
+ void this.sendMultimediaMessage(rawMessageInfo);
}
for (const [, messageInfo] of newMessageInfos) {
@@ -427,7 +427,7 @@
messageInfo: RawMultimediaMessageInfo,
): Promise<void> {
if (!threadIsPending(messageInfo.threadID)) {
- this.props.dispatchActionPromise(
+ void this.props.dispatchActionPromise(
sendMultimediaMessageActionTypes,
this.sendMultimediaMessageAction(messageInfo),
undefined,
@@ -498,7 +498,7 @@
};
}
- this.props.dispatchActionPromise(
+ void this.props.dispatchActionPromise(
sendMultimediaMessageActionTypes,
this.sendMultimediaMessageAction(newMessageInfo),
undefined,
@@ -1196,7 +1196,7 @@
abortRequest = pendingUpload.abort;
}
if (pendingUpload.serverID) {
- this.props.deleteUpload({
+ void this.props.deleteUpload({
id: pendingUpload.serverID,
keyserverOrThreadID: threadID,
});
@@ -1208,7 +1208,7 @@
const endpoint = blobService.httpEndpoints.DELETE_BLOB;
const holder = pendingUpload.blobHolder;
const blobHash = blobHashFromBlobServiceURI(pendingUpload.uri);
- fetch(makeBlobServiceEndpointURL(endpoint), {
+ void fetch(makeBlobServiceEndpointURL(endpoint), {
method: endpoint.method,
body: JSON.stringify({
holder,
@@ -1256,7 +1256,7 @@
}
if (!threadIsPending(inputThreadInfo.id)) {
- this.props.dispatchActionPromise(
+ void this.props.dispatchActionPromise(
sendTextMessageActionTypes,
this.sendTextMessageAction(
messageInfo,
@@ -1325,7 +1325,7 @@
...threadInfo,
id: newThreadID,
};
- this.props.dispatchActionPromise(
+ void this.props.dispatchActionPromise(
sendTextMessageActionTypes,
this.sendTextMessageAction(
newMessageInfo,
@@ -1383,7 +1383,7 @@
this.props.sendCallbacks.forEach(callback => callback());
const localMessageID = `${localIDPrefix}${localID}`;
- this.startThreadCreation(threadInfo);
+ void this.startThreadCreation(threadInfo);
if (threadIsPendingSidebar(threadInfo.id)) {
this.pendingSidebarCreationMessageLocalIDs.add(localMessageID);
@@ -1520,7 +1520,7 @@
}: RawImagesMessageInfo);
}
- this.startThreadCreation(threadInfo);
+ void this.startThreadCreation(threadInfo);
if (threadIsPendingSidebar(threadInfo.id)) {
this.pendingSidebarCreationMessageLocalIDs.add(localMessageID);
@@ -1528,7 +1528,7 @@
const completed = InputStateContainer.completedMessageIDs(this.state);
if (completed.has(localMessageID)) {
- this.sendMultimediaMessage(newRawMessageInfo);
+ void this.sendMultimediaMessage(newRawMessageInfo);
return;
}
@@ -1590,7 +1590,7 @@
};
});
- this.uploadFiles(threadInfo.id, uploadsToRetry);
+ void this.uploadFiles(threadInfo.id, uploadsToRetry);
}
addReply = (message: string) => {
diff --git a/web/invite-links/accept-invite-modal.react.js b/web/invite-links/accept-invite-modal.react.js
--- a/web/invite-links/accept-invite-modal.react.js
+++ b/web/invite-links/accept-invite-modal.react.js
@@ -67,7 +67,10 @@
}, [calendarQuery, callJoinThread, communityID, inviteSecret, popModal]);
const dispatchActionPromise = useDispatchActionPromise();
const joinCommunity = React.useCallback(() => {
- dispatchActionPromise(joinThreadActionTypes, createJoinCommunityAction());
+ void dispatchActionPromise(
+ joinThreadActionTypes,
+ createJoinCommunityAction(),
+ );
}, [createJoinCommunityAction, dispatchActionPromise]);
const joinThreadLoadingStatus = useSelector(joinThreadLoadingStatusSelector);
diff --git a/web/invite-links/invite-link-handler.react.js b/web/invite-links/invite-link-handler.react.js
--- a/web/invite-links/invite-link-handler.react.js
+++ b/web/invite-links/invite-link-handler.react.js
@@ -35,8 +35,11 @@
payload: { inviteSecret: null },
});
const validateLinkPromise = validateLink({ secret: inviteSecret });
- dispatchActionPromise(verifyInviteLinkActionTypes, validateLinkPromise);
- (async () => {
+ void dispatchActionPromise(
+ verifyInviteLinkActionTypes,
+ validateLinkPromise,
+ );
+ void (async () => {
const result = await validateLinkPromise;
if (result.status === 'already_joined') {
return;
diff --git a/web/invite-links/invite-links-refresher.react.js b/web/invite-links/invite-links-refresher.react.js
--- a/web/invite-links/invite-links-refresher.react.js
+++ b/web/invite-links/invite-links-refresher.react.js
@@ -21,7 +21,7 @@
if (!isActive || !loggedIn) {
return;
}
- dispatchActionPromise(
+ void dispatchActionPromise(
fetchPrimaryInviteLinkActionTypes,
callFetchPrimaryLinks(),
);
diff --git a/web/media/encrypted-multimedia.react.js b/web/media/encrypted-multimedia.react.js
--- a/web/media/encrypted-multimedia.react.js
+++ b/web/media/encrypted-multimedia.react.js
@@ -63,7 +63,7 @@
}
};
- loadDecrypted();
+ void loadDecrypted();
return () => {
isMounted = false;
diff --git a/web/media/loadable-video.react.js b/web/media/loadable-video.react.js
--- a/web/media/loadable-video.react.js
+++ b/web/media/loadable-video.react.js
@@ -41,7 +41,7 @@
uriToDispose;
setThumbnailImage(null);
- (async () => {
+ void (async () => {
if (thumbnailURI) {
await preloadImage(thumbnailURI);
if (isMounted) {
diff --git a/web/media/media-utils.js b/web/media/media-utils.js
--- a/web/media/media-utils.js
+++ b/web/media/media-utils.js
@@ -255,7 +255,7 @@
return;
}
- (async () => {
+ void (async () => {
try {
const decryptedThumbHash = await decryptThumbhashToDataURL(
thumbHash,
diff --git a/web/modals/chat/message-results-modal.react.js b/web/modals/chat/message-results-modal.react.js
--- a/web/modals/chat/message-results-modal.react.js
+++ b/web/modals/chat/message-results-modal.react.js
@@ -51,7 +51,7 @@
const loadingStatus = useSelector(loadingStatusSelector);
React.useEffect(() => {
- dispatchActionPromise(
+ void dispatchActionPromise(
fetchPinnedMessageActionTypes,
(async () => {
const result = await callFetchPinnedMessages({ threadID });
diff --git a/web/modals/chat/toggle-pin-modal.react.js b/web/modals/chat/toggle-pin-modal.react.js
--- a/web/modals/chat/toggle-pin-modal.react.js
+++ b/web/modals/chat/toggle-pin-modal.react.js
@@ -87,7 +87,7 @@
});
};
- dispatchActionPromise(
+ void dispatchActionPromise(
toggleMessagePinActionTypes,
createToggleMessagePinPromise(),
);
diff --git a/web/modals/history/history-entry.react.js b/web/modals/history/history-entry.react.js
--- a/web/modals/history/history-entry.react.js
+++ b/web/modals/history/history-entry.react.js
@@ -120,7 +120,7 @@
event.preventDefault();
const entryID = this.props.entryInfo.id;
invariant(entryID, 'entryInfo.id (serverID) should be set');
- this.props.dispatchActionPromise(
+ void this.props.dispatchActionPromise(
restoreEntryActionTypes,
this.restoreEntryAction(),
{ customKeyName: `${restoreEntryActionTypes.started}:${entryID}` },
diff --git a/web/modals/history/history-modal.react.js b/web/modals/history/history-modal.react.js
--- a/web/modals/history/history-modal.react.js
+++ b/web/modals/history/history-modal.react.js
@@ -194,7 +194,7 @@
}
loadDay() {
- this.props.dispatchActionPromise(
+ void this.props.dispatchActionPromise(
fetchEntriesActionTypes,
this.props.fetchEntries({
startDate: this.props.dayString,
@@ -206,7 +206,7 @@
loadEntry(entryID: string) {
this.setState({ mode: 'entry', currentEntryID: entryID });
- this.props.dispatchActionPromise(
+ void this.props.dispatchActionPromise(
fetchRevisionsForEntryActionTypes,
this.fetchRevisionsForEntryAction(entryID),
);
diff --git a/web/modals/threads/gallery/thread-settings-media-gallery.react.js b/web/modals/threads/gallery/thread-settings-media-gallery.react.js
--- a/web/modals/threads/gallery/thread-settings-media-gallery.react.js
+++ b/web/modals/threads/gallery/thread-settings-media-gallery.react.js
@@ -48,7 +48,7 @@
});
setMediaInfos(result.media);
};
- fetchData();
+ void fetchData();
}, [callFetchThreadMedia, threadID, limit]);
const onClick = React.useCallback(
diff --git a/web/modals/threads/members/add-members-modal.react.js b/web/modals/threads/members/add-members-modal.react.js
--- a/web/modals/threads/members/add-members-modal.react.js
+++ b/web/modals/threads/members/add-members-modal.react.js
@@ -95,7 +95,7 @@
const callChangeThreadSettings = useChangeThreadSettings();
const addUsers = React.useCallback(() => {
- dispatchActionPromise(
+ void dispatchActionPromise(
changeThreadSettingsActionTypes,
callChangeThreadSettings({
threadID,
diff --git a/web/modals/threads/members/change-member-role-modal.react.js b/web/modals/threads/members/change-member-role-modal.react.js
--- a/web/modals/threads/members/change-member-role-modal.react.js
+++ b/web/modals/threads/members/change-member-role-modal.react.js
@@ -92,7 +92,7 @@
newRole: selectedRole,
});
- dispatchActionPromise(
+ void dispatchActionPromise(
changeThreadMemberRolesActionTypes,
createChangeThreadMemberRolesPromise(),
);
diff --git a/web/modals/threads/notifications/notifications-modal.react.js b/web/modals/threads/notifications/notifications-modal.react.js
--- a/web/modals/threads/notifications/notifications-modal.react.js
+++ b/web/modals/threads/notifications/notifications-modal.react.js
@@ -169,7 +169,7 @@
const callUpdateSubscription = useUpdateSubscription();
const onClickSave = React.useCallback(() => {
- dispatchActionPromise(
+ void dispatchActionPromise(
updateSubscriptionActionTypes,
callUpdateSubscription({
threadID: threadID,
diff --git a/web/modals/threads/settings/thread-settings-delete-tab.react.js b/web/modals/threads/settings/thread-settings-delete-tab.react.js
--- a/web/modals/threads/settings/thread-settings-delete-tab.react.js
+++ b/web/modals/threads/settings/thread-settings-delete-tab.react.js
@@ -76,7 +76,7 @@
threadInfo.id,
]);
const dispatchDeleteThreadAction = React.useCallback(() => {
- dispatchActionPromise(deleteThreadActionTypes, deleteThreadAction());
+ void dispatchActionPromise(deleteThreadActionTypes, deleteThreadAction());
}, [dispatchActionPromise, deleteThreadAction]);
const onDelete = React.useCallback(
(event: SyntheticEvent<HTMLElement>) => {
diff --git a/web/modals/threads/settings/thread-settings-general-tab.react.js b/web/modals/threads/settings/thread-settings-general-tab.react.js
--- a/web/modals/threads/settings/thread-settings-general-tab.react.js
+++ b/web/modals/threads/settings/thread-settings-general-tab.react.js
@@ -122,7 +122,7 @@
const onSubmit = React.useCallback(
(event: SyntheticEvent<HTMLElement>) => {
event.preventDefault();
- dispatchActionPromise(
+ void dispatchActionPromise(
changeThreadSettingsActionTypes,
changeThreadSettingsAction(),
);
diff --git a/web/modals/threads/settings/thread-settings-privacy-tab.react.js b/web/modals/threads/settings/thread-settings-privacy-tab.react.js
--- a/web/modals/threads/settings/thread-settings-privacy-tab.react.js
+++ b/web/modals/threads/settings/thread-settings-privacy-tab.react.js
@@ -91,7 +91,7 @@
const onSubmit = React.useCallback(
(event: SyntheticEvent<HTMLElement>) => {
event.preventDefault();
- dispatchActionPromise(
+ void dispatchActionPromise(
changeThreadSettingsActionTypes,
changeThreadSettingsAction(),
);
diff --git a/web/modals/threads/settings/thread-settings-relationship-button.react.js b/web/modals/threads/settings/thread-settings-relationship-button.react.js
--- a/web/modals/threads/settings/thread-settings-relationship-button.react.js
+++ b/web/modals/threads/settings/thread-settings-relationship-button.react.js
@@ -121,7 +121,7 @@
}
}, [action, callUpdateRelationships, otherUserInfo.id, setErrorMessage]);
const onClick = React.useCallback(() => {
- dispatchActionPromise(
+ void dispatchActionPromise(
updateRelationshipsActionTypes,
updateRelationshipsActionPromise(),
);
diff --git a/web/push-notif/push-notifs-handler.js b/web/push-notif/push-notifs-handler.js
--- a/web/push-notif/push-notifs-handler.js
+++ b/web/push-notif/push-notifs-handler.js
@@ -117,7 +117,7 @@
applicationServerKey: publicKey,
});
- dispatchActionPromise(
+ void dispatchActionPromise(
setDeviceTokenActionTypes,
callSetDeviceToken(JSON.stringify(subscription)),
);
@@ -140,7 +140,7 @@
const supported = 'Notification' in window && !electron;
React.useEffect(() => {
- (async () => {
+ void (async () => {
if (!navigator.serviceWorker || !supported) {
return;
}
@@ -175,7 +175,7 @@
if (!prevLoggedIn.current && loggedIn) {
if (Notification.permission === 'granted') {
- createPushSubscription();
+ void createPushSubscription();
} else if (
Notification.permission === 'default' &&
!shouldSkipPushPermissionAlert(notifPermissionAlertInfo)
diff --git a/web/redux/initial-state-gate.js b/web/redux/initial-state-gate.js
--- a/web/redux/initial-state-gate.js
+++ b/web/redux/initial-state-gate.js
@@ -49,7 +49,7 @@
React.useEffect(() => {
if (!prevIsRehydrated.current && isRehydrated) {
prevIsRehydrated.current = isRehydrated;
- (async () => {
+ void (async () => {
try {
let urlInfo = infoFromURL(decodeURI(window.location.href));
// Handle older links
diff --git a/web/redux/redux-setup.js b/web/redux/redux-setup.js
--- a/web/redux/redux-setup.js
+++ b/web/redux/redux-setup.js
@@ -340,7 +340,7 @@
};
}
- processDBStoreOperations(storeOperations, state.currentUserInfo?.id);
+ void processDBStoreOperations(storeOperations, state.currentUserInfo?.id);
return state;
}
diff --git a/web/redux/visibility.js b/web/redux/visibility.js
--- a/web/redux/visibility.js
+++ b/web/redux/visibility.js
@@ -19,7 +19,7 @@
let callbacks = [];
-(async () => {
+void (async () => {
if (typeof window === 'undefined') {
return;
}
diff --git a/web/roles/create-roles-modal.react.js b/web/roles/create-roles-modal.react.js
--- a/web/roles/create-roles-modal.react.js
+++ b/web/roles/create-roles-modal.react.js
@@ -192,7 +192,7 @@
};
}
- dispatchActionPromise(
+ void dispatchActionPromise(
modifyCommunityRoleActionTypes,
(async () => {
try {
diff --git a/web/roles/delete-role-modal.react.js b/web/roles/delete-role-modal.react.js
--- a/web/roles/delete-role-modal.react.js
+++ b/web/roles/delete-role-modal.react.js
@@ -51,7 +51,7 @@
);
const onDeleteRole = React.useCallback(() => {
- dispatchActionPromise(
+ void dispatchActionPromise(
deleteCommunityRoleActionTypes,
(async () => {
const response = await callDeleteCommunityRole({
diff --git a/web/settings/account-delete-modal.react.js b/web/settings/account-delete-modal.react.js
--- a/web/settings/account-delete-modal.react.js
+++ b/web/settings/account-delete-modal.react.js
@@ -54,7 +54,7 @@
const onDelete = React.useCallback(
(event: SyntheticEvent<HTMLButtonElement>) => {
event.preventDefault();
- dispatchActionPromise(
+ void dispatchActionPromise(
deleteKeyserverAccountActionTypes,
deleteAction(),
);
diff --git a/web/settings/password-change-modal.js b/web/settings/password-change-modal.js
--- a/web/settings/password-change-modal.js
+++ b/web/settings/password-change-modal.js
@@ -182,7 +182,7 @@
return;
}
- this.props.dispatchActionPromise(
+ void this.props.dispatchActionPromise(
changeUserPasswordActionTypes,
this.changeUserSettingsAction(),
);
diff --git a/web/sidebar/community-creation/community-creation-modal.react.js b/web/sidebar/community-creation/community-creation-modal.react.js
--- a/web/sidebar/community-creation/community-creation-modal.react.js
+++ b/web/sidebar/community-creation/community-creation-modal.react.js
@@ -97,7 +97,7 @@
setErrorMessage();
const newThreadResultPromise = callCreateNewCommunity();
- dispatchActionPromise(newThreadActionTypes, newThreadResultPromise);
+ void dispatchActionPromise(newThreadActionTypes, newThreadResultPromise);
const newThreadResult: NewThreadResult = await newThreadResultPromise;
const { newThreadID } = newThreadResult;
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Tue, Nov 26, 4:08 PM (21 h, 51 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
2585425
Default Alt Text
D10176.id34218.diff (82 KB)
Attached To
Mode
D10176: [lib][native][web][landing] Silence unused-promise using void keyword
Attached
Detach File
Event Timeline
Log In to Comment