setAddApplicationRead static method

Future<NIMResult<void>> setAddApplicationRead()

设置好友申请已读,调用该方法,历史数据未读数据均标记为已读

Implementation

static Future<NIMResult<void>> setAddApplicationRead() {
  return NimCore.instance.friendService
      .setAddApplicationRead()
      .then((result) {
    if (result.isSuccess) {
      _addApplicationUnreadCountNotifier.add(0);
    }
    return result;
  });
}