Правка и очистка

This commit is contained in:
Халимов Рустам
2026-03-16 15:22:29 +03:00
parent 1dd53e1c6a
commit 239b08b566
9 changed files with 19 additions and 30 deletions

View File

@@ -81,7 +81,11 @@ export default function EmojiPicker({ onSelect, onSelectGif, onClose }: EmojiPic
}, [tab, klipyApiKey, klipyCustomerId]);
const searchGifs = useCallback((q: string) => {
if (!klipyApiKey || !q.trim()) { setGifs([]); return; }
if (!klipyApiKey || !q.trim()) {
setGifs([]);
setGifLoading(false);
return;
}
setGifLoading(true);
fetch(`https://api.klipy.com/api/v1/${klipyApiKey}/gifs/search?page=1&per_page=30&q=${encodeURIComponent(q)}&customer_id=${klipyCustomerId}`)
.then(async (r) => {

View File

@@ -419,6 +419,7 @@ export default function MessageInput({ chatId }: MessageInputProps) {
fileSize: result.size
}],
replyToId: replyTo?.id || null,
quote: replyTo?.quote || null,
});
setReplyTo(null);
}
@@ -882,6 +883,7 @@ export default function MessageInput({ chatId }: MessageInputProps) {
fileSize: 0,
}],
replyToId: replyTo?.id || null,
quote: replyTo?.quote || null,
});
setReplyTo(null);
}