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) { _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