syncv3: support per room account data
This commit is contained in:
parent
36b8de1339
commit
77c0c13a83
5 changed files with 91 additions and 67 deletions
|
@ -1,12 +1,11 @@
|
|||
mod data;
|
||||
|
||||
use std::{collections::HashMap, sync::Arc};
|
||||
use std::sync::Arc;
|
||||
|
||||
use conduit::Result;
|
||||
use data::Data;
|
||||
use ruma::{
|
||||
events::{AnyEphemeralRoomEvent, RoomAccountDataEventType},
|
||||
serde::Raw,
|
||||
events::{AnyRawAccountDataEvent, RoomAccountDataEventType},
|
||||
RoomId, UserId,
|
||||
};
|
||||
|
||||
|
@ -47,7 +46,7 @@ impl Service {
|
|||
#[tracing::instrument(skip_all, name = "since", level = "debug")]
|
||||
pub fn changes_since(
|
||||
&self, room_id: Option<&RoomId>, user_id: &UserId, since: u64,
|
||||
) -> Result<HashMap<RoomAccountDataEventType, Raw<AnyEphemeralRoomEvent>>> {
|
||||
) -> Result<Vec<AnyRawAccountDataEvent>> {
|
||||
self.db.changes_since(room_id, user_id, since)
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue