Check if a groupv2 conversation is admin

This commit is contained in:
SessionHero01 2024-10-30 11:49:45 +11:00
parent be087fd575
commit abd689cfd3
No known key found for this signature in database

View File

@ -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