Subject: Retrieve all old messages in bulk using Matrix vNext
Hello Alex,
Right now the messages are being fetched one by one. We are following the code as given to retrieve the messages.
Is there a way to fetch all old messages in bulk using Matrix vNext? Could you please give us any sample code if there are any?
Right now the messages are being fetched one by one. We are following the code as given to retrieve the messages.
- xmppClient
- .XmppXElementStreamObserver
- .Where(el =>
- el.OfType<Message>()
- && el.Cast<Message>().Type == MatriXMessageType.GroupChat)
- .Subscribe(el =>
- {
- // handle the message here
- Debug.WriteLine(el.ToString());
- });