getDirectMessages method
Future<ChatResult<ChatPaginatedResponse<ChatMessage> > >
getDirectMessages(
- String contactUserId, {
- ChatCursorPaginationParams? pagination,
override
Fetches direct message history with a contact.
Equivalent to ChatMessagesApi.list against the resolved 1:1
room. Use this when the caller only has the contact's user id
(no room id yet). For paginated load-more pass
ChatPaginatedResponse.prevCursor as the cursor with
direction: ChatCursorDirection.older.
Implementation
@override
Future<ChatResult<ChatPaginatedResponse<ChatMessage>>> getDirectMessages(
String contactUserId, {
ChatCursorPaginationParams? pagination,
}) async =>
const ChatSuccess(ChatPaginatedResponse(items: [], hasMore: false));