that allows to load messages after or before specified message to be able to jump in history inside a chat. This way we don't listen to changes to loaded messages, we simply return them.
I introduced a new enum LoadingDirection and struct MessagesRequest for this purpose.
Added new method:
getMessages(conversation id: EntityIdentifier, request: MessagesRequest, completion: @escaping (Result<[MessageUI], ChatError>) -> Void)
that allows to load messages after or before specified message to be able to jump in history inside a chat. This way we don't listen to changes to loaded messages, we simply return them.
I introduced a new enum
LoadingDirection
and structMessagesRequest
for this purpose.