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,
|
user: currentUser,
|
||||||
attachments: [],
|
attachments: [],
|
||||||
reactions: [],
|
reactions: [],
|
||||||
|
replyTo: get().replyTo ?? undefined,
|
||||||
};
|
};
|
||||||
if (isDm) {
|
if (isDm) {
|
||||||
(optimisticMessage as any).dmChannelId = channelId;
|
(optimisticMessage as any).dmChannelId = channelId;
|
||||||
|
|||||||
Reference in New Issue
Block a user