mirror of
https://github.com/oxen-io/session-android.git
synced 2024-11-27 12:05:22 +00:00
Fix closed group creation
This commit is contained in:
parent
b647fff5b8
commit
9b329cbd34
@ -36,8 +36,9 @@ object ClosedGroupsProtocol {
|
||||
@JvmStatic
|
||||
fun shouldIgnoreGroupCreatedMessage(context: Context, group: SignalServiceGroup): Boolean {
|
||||
val members = group.members
|
||||
val userMasterDevice = TextSecurePreferences.getMasterHexEncodedPublicKey(context)
|
||||
return !members.isPresent || !members.get().contains(userMasterDevice)
|
||||
val masterPublicKeyOrNull = TextSecurePreferences.getMasterHexEncodedPublicKey(context)
|
||||
val masterPublicKey = masterPublicKeyOrNull ?: TextSecurePreferences.getLocalNumber(context)
|
||||
return !members.isPresent || !members.get().contains(masterPublicKey)
|
||||
}
|
||||
|
||||
@JvmStatic
|
||||
|
Loading…
Reference in New Issue
Block a user