From f4ae16239e21524a60dd0ce4fbf1cbe085c59840 Mon Sep 17 00:00:00 2001 From: Niels Andriesse Date: Fri, 11 Jun 2021 11:27:15 +1000 Subject: [PATCH] Clean --- .../messaging/messages/control/ClosedGroupControlMessage.kt | 2 +- .../sending_receiving/MessageSenderClosedGroupHandler.kt | 1 - 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/libsession/src/main/java/org/session/libsession/messaging/messages/control/ClosedGroupControlMessage.kt b/libsession/src/main/java/org/session/libsession/messaging/messages/control/ClosedGroupControlMessage.kt index e7e5196671..bd20346f99 100644 --- a/libsession/src/main/java/org/session/libsession/messaging/messages/control/ClosedGroupControlMessage.kt +++ b/libsession/src/main/java/org/session/libsession/messaging/messages/control/ClosedGroupControlMessage.kt @@ -34,7 +34,7 @@ class ClosedGroupControlMessage() : ControlMessage() { is Kind.New -> { !kind.publicKey.isEmpty && kind.name.isNotEmpty() && kind.encryptionKeyPair?.publicKey != null && kind.encryptionKeyPair?.privateKey != null && kind.members.isNotEmpty() && kind.admins.isNotEmpty() - && kind.expireTimer >= 0 + && kind.expireTimer >= 0 } is Kind.EncryptionKeyPair -> true is Kind.NameChange -> kind.name.isNotEmpty() diff --git a/libsession/src/main/java/org/session/libsession/messaging/sending_receiving/MessageSenderClosedGroupHandler.kt b/libsession/src/main/java/org/session/libsession/messaging/sending_receiving/MessageSenderClosedGroupHandler.kt index c7dec83d19..521d043170 100644 --- a/libsession/src/main/java/org/session/libsession/messaging/sending_receiving/MessageSenderClosedGroupHandler.kt +++ b/libsession/src/main/java/org/session/libsession/messaging/sending_receiving/MessageSenderClosedGroupHandler.kt @@ -133,7 +133,6 @@ fun MessageSender.addMembers(groupPublicKey: String, membersToAdd: List) Log.d("Loki", "Can't add members to nonexistent closed group.") throw Error.NoThread } - // Get expiration timer value for the group val recipient = Recipient.from(context, fromSerialized(groupID), false) val expireTimer = recipient.expireMessages if (membersToAdd.isEmpty()) {