removeMessagePin method

void removeMessagePin(
  1. NIMMessage message, {
  2. String? ext,
})

Implementation

void removeMessagePin(NIMMessage message, {String? ext}) {
  ChatMessageRepo.removeMessagePin(message, ext: ext).then((value) {
    if (value.isSuccess) {
      _updateMessagePin(
          NIMMessagePin(
              sessionId: message.sessionId!,
              sessionType: message.sessionType!,
              messageId: message.messageId,
              messageUuid: message.uuid),
          delete: true);
    }
  });
}