queryRoamMsgTimestamps static method

Future<int> queryRoamMsgTimestamps(
  1. String sessionId,
  2. NIMSessionType sessionType
)

查询漫游消息时间戳

Implementation

static Future<int> queryRoamMsgTimestamps(
    String sessionId, NIMSessionType sessionType) async {
  var res = await NimCore.instance.messageService
      .queryRoamMsgHasMoreTime(sessionId, sessionType);
  return res.isSuccess && res.data != null ? res.data! : 0;
}