Synchronises a chat action to other devices.
(&self, context: &Context, action: SyncAction)
| 2123 | |
| 2124 | /// Synchronises a chat action to other devices. |
| 2125 | pub(crate) async fn sync(&self, context: &Context, action: SyncAction) -> Result<()> { |
| 2126 | if let Some(id) = self.get_sync_id(context).await? { |
| 2127 | sync(context, id, action).await?; |
| 2128 | } |
| 2129 | Ok(()) |
| 2130 | } |
| 2131 | } |
| 2132 | |
| 2133 | pub(crate) async fn sync(context: &Context, id: SyncId, action: SyncAction) -> Result<()> { |
no test coverage detected