iMAdmin

open fun iMAdmin(@NonNull context: Context, @Nullable conversationId: String): Boolean

Call this method to check if i'm an administrator in a group conversation :

  • I'm an admin initiator
  • I'm a regular administrator.
  • or if the conversation without administrators, contains only groups

The given conversation should :

  • be a group group conversation (THREAD_TYPE_GROUP).
  • exist.
  • not related to a MyBusiness process.
  • not an emergency conversation.

Return

true if i'm an administrator

Parameters

context

The application context

conversationId

Conversation ID.