mirror of
https://github.com/oxen-io/session-android.git
synced 2024-12-04 15:35:19 +00:00
Clean
This commit is contained in:
parent
b9a18a50b3
commit
f4ae16239e
@ -34,7 +34,7 @@ class ClosedGroupControlMessage() : ControlMessage() {
|
|||||||
is Kind.New -> {
|
is Kind.New -> {
|
||||||
!kind.publicKey.isEmpty && kind.name.isNotEmpty() && kind.encryptionKeyPair?.publicKey != null
|
!kind.publicKey.isEmpty && kind.name.isNotEmpty() && kind.encryptionKeyPair?.publicKey != null
|
||||||
&& kind.encryptionKeyPair?.privateKey != null && kind.members.isNotEmpty() && kind.admins.isNotEmpty()
|
&& kind.encryptionKeyPair?.privateKey != null && kind.members.isNotEmpty() && kind.admins.isNotEmpty()
|
||||||
&& kind.expireTimer >= 0
|
&& kind.expireTimer >= 0
|
||||||
}
|
}
|
||||||
is Kind.EncryptionKeyPair -> true
|
is Kind.EncryptionKeyPair -> true
|
||||||
is Kind.NameChange -> kind.name.isNotEmpty()
|
is Kind.NameChange -> kind.name.isNotEmpty()
|
||||||
|
@ -133,7 +133,6 @@ fun MessageSender.addMembers(groupPublicKey: String, membersToAdd: List<String>)
|
|||||||
Log.d("Loki", "Can't add members to nonexistent closed group.")
|
Log.d("Loki", "Can't add members to nonexistent closed group.")
|
||||||
throw Error.NoThread
|
throw Error.NoThread
|
||||||
}
|
}
|
||||||
// Get expiration timer value for the group
|
|
||||||
val recipient = Recipient.from(context, fromSerialized(groupID), false)
|
val recipient = Recipient.from(context, fromSerialized(groupID), false)
|
||||||
val expireTimer = recipient.expireMessages
|
val expireTimer = recipient.expireMessages
|
||||||
if (membersToAdd.isEmpty()) {
|
if (membersToAdd.isEmpty()) {
|
||||||
|
Loading…
Reference in New Issue
Block a user