Исправление невозможности выбора сообщений в диалоге

This commit is contained in:
RoyceDa
2026-03-30 19:37:17 +02:00
parent 269f66fdc5
commit d2a506119c
2 changed files with 2 additions and 3 deletions

View File

@@ -13,9 +13,7 @@ export function MessageReplyMessages(props: AttachmentProps) {
('showAlertInReplyMessages', true); ('showAlertInReplyMessages', true);
const [bgInReplyMessages] = useSetting<string> const [bgInReplyMessages] = useSetting<string>
('bgInReplyMessages', ''); ('bgInReplyMessages', '');
const reply = JSON.parse(props.attachment.blob); const reply = JSON.parse(props.attachment.blob) as MessageReply[];
console.info("Mreply", reply);
const closeAlert = () => { const closeAlert = () => {
modals.openConfirmModal({ modals.openConfirmModal({

View File

@@ -52,6 +52,7 @@ export function useReplyMessages() {
*/ */
return; return;
} }
replyMessages.messages.push(message);
const sortedByTime = replyMessages.messages.sort((a, b) => a.timestamp - b.timestamp); const sortedByTime = replyMessages.messages.sort((a, b) => a.timestamp - b.timestamp);
setReplyMessages({ setReplyMessages({
publicKey: dialog, publicKey: dialog,