fix: hydrate replyTo on optimistic messages so reply preview renders instantly
This commit is contained in:
@@ -190,6 +190,7 @@ export const useChatStore = create<ChatState>((set, get) => ({
|
||||
user: currentUser,
|
||||
attachments: [],
|
||||
reactions: [],
|
||||
replyTo: get().replyTo ?? undefined,
|
||||
};
|
||||
if (isDm) {
|
||||
(optimisticMessage as any).dmChannelId = channelId;
|
||||
|
||||
Reference in New Issue
Block a user