patch msg id for msg search (#250)

This commit is contained in:
Christina Tong
2025-12-17 10:47:41 -08:00
committed by GitHub
parent d9ad5cbc07
commit 06b393b2b2

View File

@@ -330,7 +330,8 @@ export function MessageSearch({ onClose }: MessageSearchProps) {
);
// Use message id + index for guaranteed uniqueness (search can return same message multiple times)
const msgId = "id" in msg ? String(msg.id) : "result";
const msgId =
"message_id" in msg ? String(msg.message_id) : "result";
const uniqueKey = `${msgId}-${startIndex + index}`;
return (