When creating a reply, pass the parentId to the message creation function.
parentId
import { MessageRepository } from '@amityco/js-sdk' const message = { ... }; MessageRepository.createTextMessage({ channelId: 'channelId', text: 'reply message', parentId: message.messageId });
Last updated 1 year ago