(context: &Context, id: SyncId, action: SyncAction)
| 2131 | } |
| 2132 | |
| 2133 | pub(crate) async fn sync(context: &Context, id: SyncId, action: SyncAction) -> Result<()> { |
| 2134 | context |
| 2135 | .add_sync_item(SyncData::AlterChat { id, action }) |
| 2136 | .await?; |
| 2137 | context.scheduler.interrupt_smtp().await; |
| 2138 | Ok(()) |
| 2139 | } |
| 2140 | |
| 2141 | /// Whether the chat is pinned or archived. |
| 2142 | #[derive(Debug, Copy, Eq, PartialEq, Clone, Serialize, Deserialize, EnumIter, Default)] |