loadPinnedMessages method

Future<List<Message>> loadPinnedMessages({
  1. required String conversationId,
  2. required ConversationType type,
})

Implementation

Future<List<Message>> loadPinnedMessages({
  required String conversationId,
  required ConversationType type,
}) {
  return checkResult(ChatSDKEvent.loadPinnedMessages, () async {
    final conversation = await getConversation(
      conversationId: conversationId,
      type: type,
    );
    return await conversation!.loadPinnedMessages();
  });
}