mirror of
https://github.com/oxen-io/session-android.git
synced 2024-12-25 17:27:45 +00:00
Fix sender key requesting mechanism
This commit is contained in:
parent
a162f7f13e
commit
9566fb1a81
@ -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
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user