daemon: adds conversation list limit, fixes auth saving in db auth store
This commit is contained in:
@@ -42,11 +42,13 @@ impl UpdateMonitor {
|
||||
match update {
|
||||
UpdateEvent::ConversationChanged(conversation) => {
|
||||
log::info!(target: target::UPDATES, "Conversation changed: {:?}", conversation);
|
||||
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);
|
||||
});
|
||||
if conversation.unread_count > 0 {
|
||||
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);
|
||||
});
|
||||
}
|
||||
}
|
||||
|
||||
UpdateEvent::MessageReceived(conversation, message) => {
|
||||
|
||||
Reference in New Issue
Block a user