mirror of
https://github.com/chatmail/core.git
synced 2026-05-04 22:06:29 +03:00
emit exact chatid events in contact aeap and contact name change
This commit is contained in:
@@ -696,7 +696,10 @@ impl Peerstate {
|
||||
}
|
||||
|
||||
context.emit_event(EventType::UIChatListChanged);
|
||||
context.emit_event(EventType::UIChatListItemChanged { chat_id: None });
|
||||
// update the chats the contact is part of
|
||||
for chat_id in Contact::get_chats_with_contact(context, &contact_id).await? {
|
||||
context.emit_event(EventType::UIChatListItemChanged { chat_id: Some(chat_id) });
|
||||
}
|
||||
Ok(())
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user