Check if a groupv2 conversation is admin

closed_groups
SessionHero01 5 months ago
parent be087fd575
commit abd689cfd3
No known key found for this signature in database

@ -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…
Cancel
Save