pinMessage method

Future<void> pinMessage(
  1. Message message
)

Implementation

Future<void> pinMessage(Message message) async {
  try {
    await ChatUIKit.instance.pinMessage(
      messageId: message.msgId,
    );
    pinedMessages.value = pinedMessages.value + [message];
  } catch (e) {
    debugPrint('pinMessage: $e');
  }
}