mirror of
https://github.com/chatmail/core.git
synced 2026-05-02 21:06:31 +03:00
fix member_added/member_removed event with tests and and provide a group-tracking example
This commit is contained in:
@@ -314,7 +314,7 @@ impl Context {
|
||||
from_id: u32,
|
||||
) -> String {
|
||||
let insert1 = if id == StockMessage::MsgAddMember || id == StockMessage::MsgDelMember {
|
||||
let contact_id = Contact::lookup_id_by_addr(self, param1.as_ref());
|
||||
let contact_id = Contact::lookup_id_by_addr(self, param1.as_ref(), Origin::Unknown);
|
||||
if contact_id != 0 {
|
||||
Contact::get_by_id(self, contact_id)
|
||||
.map(|contact| contact.get_name_n_addr())
|
||||
|
||||
Reference in New Issue
Block a user