From c8c7308000ad4483a8662e6ae8e4e588680a65cc Mon Sep 17 00:00:00 2001 From: Audric Ackermann Date: Fri, 25 Oct 2024 17:26:40 +1100 Subject: [PATCH] fix: decline group request does not show up shortly in main convolist --- ts/components/MemberListItem.tsx | 2 +- ts/interactions/conversationInteractions.ts | 8 ++++++++ 2 files changed, 9 insertions(+), 1 deletion(-) diff --git a/ts/components/MemberListItem.tsx b/ts/components/MemberListItem.tsx index 3252852a5..efcc63c19 100644 --- a/ts/components/MemberListItem.tsx +++ b/ts/components/MemberListItem.tsx @@ -250,7 +250,7 @@ const ResendPromoteButton = ({ buttonShape={SessionButtonShape.Square} buttonType={SessionButtonType.Solid} buttonColor={SessionButtonColor.Danger} - text="PrOmOtE" + text="PrOmOtE" // TODO DO NOT MERGE Remove after QA onClick={() => { void promoteUsersInGroup({ groupPk, diff --git a/ts/interactions/conversationInteractions.ts b/ts/interactions/conversationInteractions.ts index 5a5172660..eae5f3a2c 100644 --- a/ts/interactions/conversationInteractions.ts +++ b/ts/interactions/conversationInteractions.ts @@ -220,6 +220,14 @@ export async function declineConversationWithoutConfirm({ if (PubKey.is03Pubkey(conversationId)) { await UserGroupsWrapperActions.eraseGroup(conversationId); + // when deleting a 03 group message request, we also need to remove the conversation altogether + await ConvoHub.use().deleteGroup(conversationId, { + deleteAllMessagesOnSwarm: false, + emptyGroupButKeepAsKicked: false, + forceDestroyForAllMembers: false, + fromSyncMessage: false, + sendLeaveMessage: false, + }); } if (syncToDevices) {