linting fixes

pull/2222/head
warrickct 3 years ago
parent 065b8ab533
commit 600ef86ea7

@ -60,7 +60,7 @@ export const ConversationMessageRequestButtons = () => {
await declineConversation(id, false); await declineConversation(id, false);
await blockConvoById(id); await blockConvoById(id);
await forceSyncConfigurationNowIfNeeded(); await forceSyncConfigurationNowIfNeeded();
await clearConversationFocus(); clearConversationFocus();
}, },
onClickCancel: () => { onClickCancel: () => {
dispatch(updateConfirmModal(null)); dispatch(updateConfirmModal(null));

@ -34,7 +34,7 @@ export const OverlayMessageRequest = () => {
* Blocks all message request conversations and synchronizes across linked devices * Blocks all message request conversations and synchronizes across linked devices
* @returns void * @returns void
*/ */
async function handleClearAllRequestsClick(convoRequests: Array<ReduxConversationType>) { function handleClearAllRequestsClick(convoRequests: Array<ReduxConversationType>) {
const { i18n } = window; const { i18n } = window;
const title = i18n('clearAllConfirmationTitle'); const title = i18n('clearAllConfirmationTitle');
const message = i18n('clearAllConfirmationBody'); const message = i18n('clearAllConfirmationBody');
@ -66,7 +66,7 @@ export const OverlayMessageRequest = () => {
// if we're looking at the convo to decline, close the convo // if we're looking at the convo to decline, close the convo
if (selectedConversation?.id === id) { if (selectedConversation?.id === id) {
await clearConversationFocus(); clearConversationFocus();
} }
return true; return true;
})) }))
@ -80,7 +80,7 @@ export const OverlayMessageRequest = () => {
if (convoRequestCount === newConvosBlocked.length) { if (convoRequestCount === newConvosBlocked.length) {
dispatch(setOverlayMode(undefined)); dispatch(setOverlayMode(undefined));
dispatch(showLeftPaneSection(SectionType.Message)); dispatch(showLeftPaneSection(SectionType.Message));
await clearConversationFocus(); clearConversationFocus();
} }
}, },
}) })
@ -97,8 +97,8 @@ export const OverlayMessageRequest = () => {
buttonColor={SessionButtonColor.Danger} buttonColor={SessionButtonColor.Danger}
buttonType={SessionButtonType.BrandOutline} buttonType={SessionButtonType.BrandOutline}
text={buttonText} text={buttonText}
onClick={async () => { onClick={() => {
await handleClearAllRequestsClick(messageRequests); handleClearAllRequestsClick(messageRequests);
}} }}
/> />
</> </>

@ -978,7 +978,7 @@ export async function openConversationWithMessages(args: {
); );
} }
export async function clearConversationFocus() { export function clearConversationFocus() {
window.inboxStore?.dispatch(actions.resetConversationExternal()); window.inboxStore?.dispatch(actions.resetConversationExternal());
} }

Loading…
Cancel
Save