fix: pass yarn ready

pull/2789/head
William Grant 2 years ago
parent fcadc8df07
commit 1c8ae3650e

@ -292,8 +292,8 @@ export const SessionRightPanelWithDetails = () => {
const showAddRemoveModeratorsButton = weAreAdmin && !commonNoShow && isPublic;
const showUpdateGroupMembersButton = !isPublic && isGroup && !commonNoShow;
const deleteConvoAction = () => {
showLeaveGroupByConvoId(selectedConvoKey, selectedUsername);
const deleteConvoAction = async () => {
await showLeaveGroupByConvoId(selectedConvoKey, selectedUsername);
};
return (

@ -142,8 +142,8 @@ export const LeaveGroupOrCommunityMenuItem = () => {
if (!isKickedFromGroup && !isLeft && !isPrivate) {
return (
<Item
onClick={() => {
showLeaveGroupByConvoId(convoId, username);
onClick={async () => {
await showLeaveGroupByConvoId(convoId, username);
}}
>
{isPublic

@ -713,7 +713,7 @@ export async function callRecipient(pubkey: string, canCall: boolean) {
/**
* Updates the interaction state for a conversation. Remember to run clearConversationInteractionState() when the interaction is complete and we don't want to show it in the UI anymore.
* @param conversationId
* @param conversationId id of the converation we want to interact with
* @param type the type of conversation interaciton we are doing
* @param status the status of that interaction
*/
@ -740,7 +740,7 @@ export async function updateConversationInteractionState({
/**
* Clears the interaction state for a conversation. We would use this when we don't need to show anything in the UI once an action is complete.
* @param conversationId
* @param conversationId id of the conversation whose interaction we want to clear
*/
export async function clearConversationInteractionState({
conversationId,

@ -1859,6 +1859,7 @@ export class ConversationModel extends Backbone.Model<ConversationAttributes> {
});
}
// tslint:disable-next-line cyclomatic-complexity
private async bouncyUpdateLastMessage() {
if (!this.id || !this.get('active_at') || this.isHidden()) {
return;

Loading…
Cancel
Save