fix mini app bot father
This commit is contained in:
@@ -394,7 +394,10 @@ export function MiniFamilyChat() {
|
||||
exitSelectionMode();
|
||||
showToast(ids.length === 1 ? 'Сообщение удалено' : 'Сообщения удалены');
|
||||
} catch (error) {
|
||||
if (activeRoom) {
|
||||
if (view === 'bot' && activeBot) {
|
||||
const response = await fetchBotChatMessages(activeBot.botRef, token);
|
||||
setBotMessages(response.messages ?? []);
|
||||
} else if (activeRoom && activeRoom.type !== 'BOT') {
|
||||
const response = await fetchChatMessages(activeRoom.id, token);
|
||||
setMessages((response.messages ?? []).filter((message) => !message.isDeleted));
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user