fix: cleanup

pull/2789/head
William Grant 2 years ago
parent e7f3bb5abf
commit abfc638c2c

@ -264,8 +264,6 @@ export function showLeavePrivateConversationbyConvoId(
justHidePrivate: isMe, justHidePrivate: isMe,
}); });
onClickClose(); onClickClose();
// Note (Will): This is probably redundant since this is a destructive interaction and therefore the conversation will be undefined
await clearConversationInteractionState({ conversationId }); await clearConversationInteractionState({ conversationId });
} catch (err) { } catch (err) {
window.log.warn(`showLeavePrivateConversationbyConvoId error: ${err}`); window.log.warn(`showLeavePrivateConversationbyConvoId error: ${err}`);
@ -330,8 +328,6 @@ export function showLeaveGroupByConvoId(conversationId: string, name: string | u
}); });
} }
onClickClose(); onClickClose();
// Note (Will): This is probably redundant since this is a destructive interaction and therefore the conversation will be undefined
await clearConversationInteractionState({ conversationId }); await clearConversationInteractionState({ conversationId });
} catch (err) { } catch (err) {
window.log.warn(`showLeaveGroupByConvoId error: ${err}`); window.log.warn(`showLeaveGroupByConvoId error: ${err}`);
@ -356,8 +352,12 @@ export function showLeaveGroupByConvoId(conversationId: string, name: string | u
}) })
); );
// TODO Only to be used after the closed group rebuild // TODO Only to be used after the closed group rebuild
// const onClickOkLastAdmin = () => { // TODO }; // const onClickOkLastAdmin = () => {
// const onClickCloseLastAdmin = () => { // TODO }; // /* TODO */
// };
// const onClickCloseLastAdmin = () => {
// /* TODO */
// };
// window?.inboxStore?.dispatch( // window?.inboxStore?.dispatch(
// updateConfirmModal({ // updateConfirmModal({
// title: window.i18n('leaveGroup'), // title: window.i18n('leaveGroup'),

Loading…
Cancel
Save