mirror of
https://github.com/chatmail/core.git
synced 2026-04-28 19:06:35 +03:00
Optimize Autocrypt gossip
Update gossiped_timestamp when someone else sends autocrypt gossip in the group, so we postpone sending gossip again ourselves. - Warn about failures to parse Autocrypt-Gossip header - Move gossip-related methods into ChatId impl - Fix a "gossi_pp_ed" typo
This commit is contained in:
@@ -991,7 +991,7 @@ pub async fn send_msg_job(context: &Context, msg_id: MsgId) -> Result<Option<Job
|
||||
}
|
||||
|
||||
if rendered_msg.is_gossiped {
|
||||
chat::set_gossiped_timestamp(context, msg.chat_id, time()).await?;
|
||||
msg.chat_id.set_gossiped_timestamp(context, time()).await?;
|
||||
}
|
||||
|
||||
if 0 != rendered_msg.last_added_location_id {
|
||||
|
||||
Reference in New Issue
Block a user