@@ -14,7 +14,7 @@ use ruma::{
|
||||
api::client::{
|
||||
filter::FilterDefinition,
|
||||
sync::sync_events::{
|
||||
self, DeviceLists, StrippedState, UnreadNotificationsCount,
|
||||
self, DeviceLists, UnreadNotificationsCount,
|
||||
v3::{
|
||||
Ephemeral, Filter, GlobalAccountData, InviteState, InvitedRoom, JoinedRoom,
|
||||
KnockState, KnockedRoom, LeftRoom, Presence, RoomAccountData, RoomSummary, Rooms,
|
||||
@@ -295,12 +295,7 @@ async fn build_sync_events(
|
||||
}
|
||||
|
||||
let invited_room = InvitedRoom {
|
||||
invite_state: InviteState {
|
||||
events: invite_state
|
||||
.into_iter()
|
||||
.map(Raw::cast::<StrippedState>)
|
||||
.collect(),
|
||||
},
|
||||
invite_state: InviteState { events: invite_state },
|
||||
};
|
||||
|
||||
invited_rooms.insert(room_id, invited_room);
|
||||
@@ -325,12 +320,7 @@ async fn build_sync_events(
|
||||
}
|
||||
|
||||
let knocked_room = KnockedRoom {
|
||||
knock_state: KnockState {
|
||||
events: knock_state
|
||||
.into_iter()
|
||||
.map(Raw::cast::<StrippedState>)
|
||||
.collect(),
|
||||
},
|
||||
knock_state: KnockState { events: knock_state },
|
||||
};
|
||||
|
||||
knocked_rooms.insert(room_id, knocked_room);
|
||||
|
||||
@@ -14,8 +14,7 @@ use futures::{
|
||||
use ruma::{
|
||||
DeviceId, OwnedEventId, OwnedRoomId, RoomId, UInt, UserId,
|
||||
api::client::sync::sync_events::{
|
||||
self, DeviceLists, StrippedState, UnreadNotificationsCount,
|
||||
v5::request::ExtensionRoomConfig,
|
||||
self, DeviceLists, UnreadNotificationsCount, v5::request::ExtensionRoomConfig,
|
||||
},
|
||||
directory::RoomTypeFilter,
|
||||
events::{
|
||||
@@ -650,11 +649,7 @@ where
|
||||
name: room_name.or(hero_name),
|
||||
initial: Some(roomsince == &0),
|
||||
is_dm: None,
|
||||
invite_state: invite_state.map(|s| {
|
||||
s.into_iter()
|
||||
.map(Raw::cast::<StrippedState>)
|
||||
.collect()
|
||||
}),
|
||||
invite_state,
|
||||
unread_notifications: UnreadNotificationsCount {
|
||||
highlight_count: Some(
|
||||
services
|
||||
|
||||
Reference in New Issue
Block a user