fix: contact::set_blocked(): Don't fail on sync errors, just log them

Multi-device synchronisation is not critical and should not fail the local operation, in other
places sync errors are already ignored.
This commit is contained in:
iequidoo
2024-01-09 14:30:29 -03:00
committed by iequidoo
parent 20065d3daa
commit bb47299ee4
2 changed files with 11 additions and 9 deletions

View File

@@ -2104,7 +2104,7 @@ impl Chat {
}
}
async fn sync(context: &Context, id: SyncId, action: SyncAction) -> Result<()> {
pub(crate) async fn sync(context: &Context, id: SyncId, action: SyncAction) -> Result<()> {
context
.add_sync_item(SyncData::AlterChat { id, action })
.await?;