removeMessagePin static method

Future<NIMResult<void>> removeMessagePin(
  1. NIMMessage message, {
  2. String? ext,
})

移除pin消息

Implementation

static Future<NIMResult<void>> removeMessagePin(NIMMessage message,
    {String? ext}) {
  final res = NimCore.instance.messageService
      .removeMessagePin(message, ext)
      .then((value) {
    if (value.isSuccess) {
      NIMChatCache.instance.removePin(message);
    }
    return value;
  });
  return res;
}