Правка и очистка
This commit is contained in:
@@ -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) => {
|
||||
|
||||
@@ -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);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user