This commit is contained in:
Brice-W 2021-04-28 16:00:13 +10:00
parent 54ba848d09
commit ab68001b15
3 changed files with 1 additions and 8 deletions

View File

@ -183,9 +183,7 @@ public class GroupDatabase extends Database implements LokiOpenGroupDatabaseProt
List<Recipient> recipients = new LinkedList<>();
for (Address member : members) {
if (member.isContact()) {
recipients.add(Recipient.from(context, member, false));
}
}
return recipients;

View File

@ -41,8 +41,7 @@ class EditClosedGroupActivity : PassphraseRequiredActionBarActivity() {
private val members = HashSet<String>()
private val allMembers: Set<String>
get() {
return if (zombies.isNotEmpty()) (members + zombies)
else members
return members + zombies
}
private var hasNameChanged = false
private var isSelfAdmin = false

View File

@ -522,11 +522,7 @@ private fun MessageReceiver.handleClosedGroupMemberLeft(message: ClosedGroupCont
// admin left the group of linked device left the group
disableLocalGroupAndUnsubscribe(groupPublicKey, groupID, userPublicKey)
} else {
//val isCurrentUserAdmin = admins.contains(userPublicKey)
storage.updateMembers(groupID, updatedMemberList.map { Address.fromSerialized(it) })
//if (isCurrentUserAdmin) {
// MessageSender.generateAndSendNewEncryptionKeyPair(groupPublicKey, updatedMemberList)
//}
// update zombie members
val zombies = storage.getZombieMember(groupID)
storage.updateZombieMembers(groupID, zombies.plus(senderPublicKey).map { Address.fromSerialized(it) })