refac
This commit is contained in:
@@ -612,10 +612,14 @@
|
|||||||
|
|
||||||
if (event.chat_id === $chatId) {
|
if (event.chat_id === $chatId) {
|
||||||
await tick();
|
await tick();
|
||||||
|
const type = event?.data?.type ?? null;
|
||||||
|
if (type === 'chat:reload') {
|
||||||
|
await loadChat();
|
||||||
|
return;
|
||||||
|
}
|
||||||
let message = history.messages[event.message_id];
|
let message = history.messages[event.message_id];
|
||||||
|
|
||||||
if (message) {
|
if (message) {
|
||||||
const type = event?.data?.type ?? null;
|
|
||||||
const data = event?.data?.data ?? null;
|
const data = event?.data?.data ?? null;
|
||||||
|
|
||||||
if (type === 'status') {
|
if (type === 'status') {
|
||||||
|
|||||||
Reference in New Issue
Block a user