fix: decline group request does not show up shortly in main convolist

pull/3052/head
Audric Ackermann 6 months ago
parent f4d0e369c9
commit c8c7308000
No known key found for this signature in database

@ -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,

@ -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) {

Loading…
Cancel
Save