Merge pull request #1506 from oxen-io/clearnet

Session v1.4.9
pull/1546/head v1.4.9
Audric Ackermann 4 years ago committed by GitHub
commit 7b08f3b6ba
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -744,9 +744,23 @@ async function handleClosedGroupMemberLeft(
}
if (didAdminLeave) {
window.SwarmPolling.removePubkey(groupPublicKey);
await removeAllClosedGroupEncryptionKeyPairs(groupPublicKey);
// Disable typing
// if the admin was remove and we are the admin, it can only be voluntary
if (isCurrentUserAdmin) {
convo.set('left', true);
} else {
convo.set('isKickedFromGroup', true);
}
}
const didWeLeaveFromAnotherDevice = !members.includes(ourPubkey);
if (didWeLeaveFromAnotherDevice) {
await removeAllClosedGroupEncryptionKeyPairs(groupPublicKey);
// Disable typing:
convo.set('isKickedFromGroup', true);
convo.set('left', true);
window.SwarmPolling.removePubkey(groupPublicKey);
}

Loading…
Cancel
Save