clearPrivateSessionUnreadMsg static method

Future<int> clearPrivateSessionUnreadMsg(
  1. String uid,
  2. int type
)

把某个会话中所有未读消息标记为已读 @param uid 用户id @param type 私信或群组消息 成功返回处理条数, 否则返回<0的值

Implementation

static Future<int> clearPrivateSessionUnreadMsg(String uid, int type) async {
  if (uid == null) return 0;

  return await _channel.invokeMethod("clearSessionUnreadMsg", {
    "uid": uid,
    "type": type
  });
}