mirror of
https://github.com/chatmail/core.git
synced 2026-04-20 06:56:29 +03:00
fix: only send contact changed event for recently seen if it is relevant (#3938)
(no events for contacts that are already offline again) This dramatically speeds up replay after backup import on desktop.
This commit is contained in:
@@ -1416,6 +1416,7 @@ pub(crate) async fn update_last_seen(
|
||||
)
|
||||
.await?
|
||||
> 0
|
||||
&& timestamp > time() - SEEN_RECENTLY_SECONDS
|
||||
{
|
||||
context.interrupt_recently_seen(contact_id, timestamp).await;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user