fix: hydrate replyTo on optimistic messages so reply preview renders instantly

This commit is contained in:
Jannis Braun
2026-02-26 00:17:00 +01:00
parent c9f9787b99
commit 3ceab3d73e
+1
View File
@@ -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;