fix bug making session request being sent for medium group create

pull/1364/head
Audric Ackermann 5 years ago
parent a80f9a5965
commit 5d7d66f65a
No known key found for this signature in database
GPG Key ID: 999F434D76324AD4

@ -323,7 +323,7 @@ async function handleMediumGroupChange(
const primary = await UserUtil.getPrimary();
sanityCheckMediumGroupUpdate(primary, diff, groupUpdate);
// console.log(`Got group update`, groupUpdate);
await saveIncomingRatchetKeys(groupId, senderKeys);
// Only add update message if we have something to show

@ -118,12 +118,14 @@ export async function createMediumGroup(
const dbMessage = await addUpdateMessage(convo, groupDiff, 'outgoing');
// be sure to call this before sending the message.
// the sending pipeline needs to know from GroupUtils when a message is for a medium group
await updateOrCreateGroup(groupDetails);
await sendGroupUpdate(convo, groupDiff, groupDetails, dbMessage.id);
// ***** 3. Add update message to the conversation *****
await updateOrCreateGroup(groupDetails);
convo.updateGroupAdmins(admins);
window.owsDesktopApp.appView.openConversation(groupId, {});

Loading…
Cancel
Save