push-protocol/push-sdk

๐Ÿ˜ˆ [Improvement Proposal] - Add the ability to fetch single messages with chatId and cid

Closed this issue ยท 0 comments

Proposal name

Fetch one message

Describe the Proposal

Fetch one message using chatId and cid.

Use Case

If you want to load more than 30 messages, but you don't want it to take a while and you create a recursive function to fetch and display messages. If a reply type is referenced to a message from 30+ messages ago, that message will not be found. Be able to look up the single message so data can be fetched and referenced.

Current Limitations

Need an efficient way to fetch messages quickly but also find references to messages that might not be included in chat.history.