Fix sender key requesting mechanism

This commit is contained in:
nielsandriesse 2020-09-18 16:59:12 +10:00
parent a162f7f13e
commit 9566fb1a81

View File

@ -229,8 +229,8 @@ object ClosedGroupsProtocol {
SignalServiceProtos.ClosedGroupUpdate.Type.INFO -> { SignalServiceProtos.ClosedGroupUpdate.Type.INFO -> {
return !closedGroupUpdate.name.isNullOrEmpty() && closedGroupUpdate.membersCount > 0 && closedGroupUpdate.adminsCount > 0 // senderKeys may be empty return !closedGroupUpdate.name.isNullOrEmpty() && closedGroupUpdate.membersCount > 0 && closedGroupUpdate.adminsCount > 0 // senderKeys may be empty
} }
SignalServiceProtos.ClosedGroupUpdate.Type.SENDER_KEY -> return true SignalServiceProtos.ClosedGroupUpdate.Type.SENDER_KEY_REQUEST -> return true
SignalServiceProtos.ClosedGroupUpdate.Type.SENDER_KEY_REQUEST -> return closedGroupUpdate.senderKeysCount > 0 SignalServiceProtos.ClosedGroupUpdate.Type.SENDER_KEY -> return closedGroupUpdate.senderKeysCount > 0
else -> return false else -> return false
} }
} }