Chatlist::try_load: make hide_device_expired_messages errors non-fatal

This commit is contained in:
Alexander Krotov
2020-04-03 12:13:42 +03:00
parent 916fab7d4b
commit 9c2a3b8a82

View File

@@ -94,7 +94,9 @@ impl Chatlist {
) -> Result<Self> {
// Note that we do not emit DC_EVENT_MSGS_MODIFIED here even if some
// messages get hidden to avoid reloading the same chatlist.
hide_device_expired_messages(context)?;
if let Err(err) = hide_device_expired_messages(context) {
warn!(context, "Failed to hide expired messages: {}", err);
}
let mut add_archived_link_item = false;