getRecipientAdminRoleInGroupConversation

open fun getRecipientAdminRoleInGroupConversation(    @NonNull context: Context,     @NonNull recipientPhoneNumber: String,     @NonNull conversationId: String): Int

Call this method to retrieve the recipient role in the group conversation

The given conversation should :

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

Return

The admin role of the current recipient in the given conversation. return UNKNOWN if recipient null or not found or conversation not found

See also

Parameters

context

The application context

recipientPhoneNumber

The recipient international number

conversationId

Conversation ID.