mirror of
https://github.com/chatmail/core.git
synced 2026-04-27 18:36:30 +03:00
remove getAllUpdates() and add a typical replicatio API for the update call (#3081)
* (r10s, adb, hpk) remove getAllUpdates() and add a typical replica-API that works with increasing serials. Streamline docs a bit. * adapt ffi to new api * documentation: updates serials may have gaps * get_webxdc_status_updates() return updates larger than a given serial * remove status_update_id from status-update-event; it is not needed (ui should update from the last known serial) and easily gets confused with last_serial * unify wording to 'StatusUpdateSerial' * remove legacy payload format, all known webxdc should be adapted * add serial and max_serial to status updates * avoid races when getting max_serial by avoiding two SQL calls * update changelog Co-authored-by: B. Petersen <r10s@b44t.com>
This commit is contained in:
@@ -9,7 +9,6 @@ use strum::EnumProperty;
|
||||
use crate::chat::ChatId;
|
||||
use crate::ephemeral::Timer as EphemeralTimer;
|
||||
use crate::message::MsgId;
|
||||
use crate::webxdc::StatusUpdateId;
|
||||
|
||||
#[derive(Debug)]
|
||||
pub struct Events {
|
||||
@@ -329,8 +328,5 @@ pub enum EventType {
|
||||
SelfavatarChanged,
|
||||
|
||||
#[strum(props(id = "2120"))]
|
||||
WebxdcStatusUpdate {
|
||||
msg_id: MsgId,
|
||||
status_update_id: StatusUpdateId,
|
||||
},
|
||||
WebxdcStatusUpdate(MsgId),
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user