@@ -805,7 +805,11 @@ impl Room {
805
805
& self ,
806
806
event_type : StateEventType ,
807
807
) -> Result < Vec < RawAnySyncOrStrippedState > > {
808
- self . client . state_store ( ) . get_state_events ( self . room_id ( ) , event_type) . await . map_err ( Into :: into)
808
+ self . client
809
+ . state_store ( )
810
+ . get_state_events ( self . room_id ( ) , event_type)
811
+ . await
812
+ . map_err ( Into :: into)
809
813
}
810
814
811
815
/// Get all state events of a given statically-known type in this room.
@@ -877,7 +881,11 @@ impl Room {
877
881
I : IntoIterator < Item = & ' a K > + Send ,
878
882
I :: IntoIter : Send ,
879
883
{
880
- Ok ( self . client . state_store ( ) . get_state_events_for_keys_static ( self . room_id ( ) , state_keys) . await ?)
884
+ Ok ( self
885
+ . client
886
+ . state_store ( )
887
+ . get_state_events_for_keys_static ( self . room_id ( ) , state_keys)
888
+ . await ?)
881
889
}
882
890
883
891
/// Get a specific state event in this room.
@@ -948,7 +956,11 @@ impl Room {
948
956
C :: Redacted : RedactedStateEventContent ,
949
957
K : AsRef < str > + ?Sized + Sync ,
950
958
{
951
- Ok ( self . client . state_store ( ) . get_state_event_static_for_key ( self . room_id ( ) , state_key) . await ?)
959
+ Ok ( self
960
+ . client
961
+ . state_store ( )
962
+ . get_state_event_static_for_key ( self . room_id ( ) , state_key)
963
+ . await ?)
952
964
}
953
965
954
966
/// Returns the parents this room advertises as its parents.
@@ -1069,8 +1081,11 @@ impl Room {
1069
1081
/// Returns true if all devices in the room are verified, otherwise false.
1070
1082
#[ cfg( feature = "e2e-encryption" ) ]
1071
1083
pub async fn contains_only_verified_devices ( & self ) -> Result < bool > {
1072
- let user_ids =
1073
- self . client . state_store ( ) . get_user_ids ( self . room_id ( ) , RoomMemberships :: empty ( ) ) . await ?;
1084
+ let user_ids = self
1085
+ . client
1086
+ . state_store ( )
1087
+ . get_user_ids ( self . room_id ( ) , RoomMemberships :: empty ( ) )
1088
+ . await ?;
1074
1089
1075
1090
for user_id in user_ids {
1076
1091
let devices = self . client . encryption ( ) . get_user_devices ( & user_id) . await ?;
0 commit comments