isStickTop static method

Future<bool> isStickTop(
  1. String teamId,
  2. NIMTeamType type
)

会话是否置顶

Implementation

static Future<bool> isStickTop(String teamId, NIMTeamType type) async {
  final conversationId =
      (await NimCore.instance.conversationIdUtil.teamConversationId(teamId))
          .data!;
  final conversation =
      (await ConversationRepo.getConversation(conversationId)).data;
  return conversation?.stickTop == true;
}