[Problem/Question]
When adding a reaction to a message or fetching a message that was sent before a user joined the channel the following error occurs (Setting to see chat history is enabled in dashboard) :
error adding reaction ==> [SendbirdError: Invalid value: “Invalid ‘message_id’ value, cannot fetch past messages when chat-history is disabled.“.]
// If problem, please fill out the below. If question, please delete.
[SDK Version]
// What version of the SDK are you using?
[Reproduction Steps]
// Please provide reproduction steps and, if possible, code snippets.
const params: MessageRetrievalParams = {
messageId,
channelType,
channelUrl,
includeReactions: true,
includeParentMessageInfo: true,
};
const message = await sb.message.getMessage(params);
const reactionResp = await channel.addReaction(message, emojiObject.key);
[Frequency]
// How frequently is this issue occurring?
All the time
[Current impact]
// How is this currently impacting your implementation?
I cannot add a reaction to previous message after I joined channel