mirror of
https://github.com/oxen-io/session-android.git
synced 2024-11-28 20:45:17 +00:00
Check if a groupv2 conversation is admin
This commit is contained in:
parent
be087fd575
commit
abd689cfd3
@ -91,8 +91,7 @@ class ConversationViewModel(
|
||||
_isAdmin.value = when(conversationType) {
|
||||
// for Groups V2
|
||||
MessageType.GROUPS_V2 -> {
|
||||
//todo GROUPS V2 add logic where code is commented to determine if user is an admin
|
||||
false // FANCHAO - properly set up admin for groups v2 here
|
||||
configFactory.getGroup(AccountId(conversation.address.serialize()))?.hasAdminKey() == true
|
||||
}
|
||||
|
||||
// for legacy groups, check if the user created the group
|
||||
|
Loading…
Reference in New Issue
Block a user