mirror of
https://github.com/oxen-io/session-android.git
synced 2024-11-25 11:05:25 +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) {
|
_isAdmin.value = when(conversationType) {
|
||||||
// for Groups V2
|
// for Groups V2
|
||||||
MessageType.GROUPS_V2 -> {
|
MessageType.GROUPS_V2 -> {
|
||||||
//todo GROUPS V2 add logic where code is commented to determine if user is an admin
|
configFactory.getGroup(AccountId(conversation.address.serialize()))?.hasAdminKey() == true
|
||||||
false // FANCHAO - properly set up admin for groups v2 here
|
|
||||||
}
|
}
|
||||||
|
|
||||||
// for legacy groups, check if the user created the group
|
// for legacy groups, check if the user created the group
|
||||||
|
Loading…
Reference in New Issue
Block a user