addStickTop method

  1. @override
Future<NIMStickTopSessionInfo?> addStickTop(
  1. String sessionId,
  2. NIMSessionType sessionType,
  3. String ext
)
override

Implementation

@override
Future<NIMStickTopSessionInfo?> addStickTop(
    String sessionId, NIMSessionType sessionType, String ext) async {
  var res = await NimCore.instance.messageService
      .addStickTopSession(sessionId, sessionType, ext);
  if (res.isSuccess) {
    notifyConversationStick(sessionId, sessionType);
  }
  return res.data;
}