Also delete group invite from swarm when rejecting invitation (#843)

pull/1710/head
SessionHero01 5 months ago committed by GitHub
parent ff12deceac
commit a091a33e38
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

@ -604,6 +604,15 @@ class GroupManagerV2Impl @Inject constructor(
} else {
configFactory.withMutableUserConfigs { it.userGroups.eraseClosedGroup(groupId.hexString) }
storage.deleteConversation(threadId)
if (groupInviteMessageHash != null) {
val auth = requireNotNull(storage.userAuth)
SnodeAPI.deleteMessage(
publicKey = auth.accountId.hexString,
swarmAuth = auth,
serverHashes = listOf(groupInviteMessageHash)
)
}
}
}

Loading…
Cancel
Save