mirror of
https://gitlab.computer.surgery/matrix/grapevine.git
synced 2025-12-19 16:51:24 +01:00
MSC3575: remove sticky parameters
This commit is contained in:
parent
991f1e2c0d
commit
64ad940bad
2 changed files with 6 additions and 142 deletions
|
|
@ -67,7 +67,7 @@ pub(crate) async fn sync_events_v4_route(
|
|||
) -> Result<Ra<sync_events::v4::Response>, Ra<UiaaResponse>> {
|
||||
let sender_user = body.sender_user.expect("user is authenticated");
|
||||
let sender_device = body.sender_device.expect("user is authenticated");
|
||||
let mut body = body.body;
|
||||
let body = body.body;
|
||||
// Setup watchers, so if there's no response, we can wait for them
|
||||
let watcher = services().globals.watch(&sender_user, &sender_device);
|
||||
|
||||
|
|
@ -88,10 +88,8 @@ pub(crate) async fn sync_events_v4_route(
|
|||
}
|
||||
}
|
||||
|
||||
// Get sticky parameters from cache
|
||||
let known_rooms = services()
|
||||
.users
|
||||
.update_sync_request_with_cache(connection_key.clone(), &mut body);
|
||||
let known_rooms =
|
||||
services().users.get_rooms_in_connection(connection_key.clone());
|
||||
|
||||
let all_joined_rooms = services()
|
||||
.rooms
|
||||
|
|
@ -405,7 +403,6 @@ pub(crate) async fn sync_events_v4_route(
|
|||
|
||||
for r in body.unsubscribe_rooms {
|
||||
known_subscription_rooms.remove(&r);
|
||||
body.room_subscriptions.remove(&r);
|
||||
}
|
||||
|
||||
if body.conn_id.is_some() {
|
||||
|
|
@ -417,12 +414,6 @@ pub(crate) async fn sync_events_v4_route(
|
|||
);
|
||||
}
|
||||
|
||||
if body.conn_id.is_some() {
|
||||
services()
|
||||
.users
|
||||
.update_sync_subscriptions(connection_key, body.room_subscriptions);
|
||||
}
|
||||
|
||||
let mut rooms = BTreeMap::new();
|
||||
for (
|
||||
room_id,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue