mirror of
https://github.com/chatmail/core.git
synced 2026-05-02 12:56:30 +03:00
feat: add UIChatListChanged and UIChatListItemChanged events
This commit is contained in:
@@ -761,6 +761,9 @@ impl Contact {
|
||||
if count > 0 {
|
||||
// Chat name updated
|
||||
context.emit_event(EventType::ChatModified(chat_id));
|
||||
context.emit_event(EventType::UIChatListItemChanged {
|
||||
chat_id: Some(chat_id),
|
||||
});
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -1528,6 +1531,7 @@ WHERE type=? AND id IN (
|
||||
}
|
||||
}
|
||||
|
||||
context.emit_event(EventType::UIChatListChanged);
|
||||
Ok(())
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user