Private
Public Access
1
0

daemon: updatemonitor: dont sync convo list on conversation update, only message sync

This commit is contained in:
2025-05-02 15:46:33 -07:00
parent 2519bc05ad
commit 461c37bd20
2 changed files with 6 additions and 5 deletions

View File

@@ -42,8 +42,8 @@ impl UpdateMonitor {
match update {
UpdateEvent::ConversationChanged(conversation) => {
log::info!(target: target::UPDATES, "Conversation changed: {:?}", conversation);
log::info!(target: target::UPDATES, "Triggering conversation list sync");
self.send_event(Event::SyncConversationList).await
log::info!(target: target::UPDATES, "Syncing new messages for conversation id: {}", conversation.guid);
self.send_event(|r| Event::SyncConversation(conversation.guid, r)).await
.unwrap_or_else(|e| {
log::error!("Failed to send daemon event: {}", e);
});