@@ -1166,7 +1166,7 @@ impl Room {
1166
1166
// Implements this algorithm:
1167
1167
// https://spec.matrix.org/v1.8/client-server-api/#mspaceparent-relationships
1168
1168
1169
- // Get all m.room .parent events for this room
1169
+ // Get all m.space .parent events for this room
1170
1170
Ok ( self
1171
1171
. get_state_events_static :: < SpaceParentEventContent > ( )
1172
1172
. await ?
@@ -1179,7 +1179,7 @@ impl Room {
1179
1179
Ok ( SyncOrStrippedState :: Sync ( SyncStateEvent :: Redacted ( _) ) ) => None ,
1180
1180
Ok ( SyncOrStrippedState :: Stripped ( e) ) => Some ( ( e. state_key . to_owned ( ) , e. sender ) ) ,
1181
1181
Err ( e) => {
1182
- info ! ( room_id = ?self . room_id( ) , "Could not deserialize m.room .parent: {e}" ) ;
1182
+ info ! ( room_id = ?self . room_id( ) , "Could not deserialize m.space .parent: {e}" ) ;
1183
1183
None
1184
1184
}
1185
1185
} )
@@ -1190,15 +1190,15 @@ impl Room {
1190
1190
// TODO: try peeking into the room
1191
1191
return Ok ( ParentSpace :: Unverifiable ( state_key) ) ;
1192
1192
} ;
1193
- // Get the m.room .child state of the parent with this room's id
1193
+ // Get the m.space .child state of the parent with this room's id
1194
1194
// as state key.
1195
1195
if let Some ( child_event) = parent_room
1196
1196
. get_state_event_static_for_key :: < SpaceChildEventContent , _ > ( self . room_id ( ) )
1197
1197
. await ?
1198
1198
{
1199
1199
match child_event. deserialize ( ) {
1200
1200
Ok ( SyncOrStrippedState :: Sync ( SyncStateEvent :: Original ( _) ) ) => {
1201
- // There is a valid m.room .child in the parent pointing to
1201
+ // There is a valid m.space .child in the parent pointing to
1202
1202
// this room
1203
1203
return Ok ( ParentSpace :: Reciprocal ( parent_room) ) ;
1204
1204
}
@@ -1207,7 +1207,7 @@ impl Room {
1207
1207
Err ( e) => {
1208
1208
info ! (
1209
1209
room_id = ?self . room_id( ) , parent_room_id = ?state_key,
1210
- "Could not deserialize m.room .child: {e}"
1210
+ "Could not deserialize m.space .child: {e}"
1211
1211
) ;
1212
1212
}
1213
1213
}
@@ -1217,7 +1217,7 @@ impl Room {
1217
1217
// relationship: https://spec.matrix.org/v1.8/client-server-api/#mspacechild
1218
1218
}
1219
1219
1220
- // No reciprocal m.room .child found, let's check if the sender has the
1220
+ // No reciprocal m.space .child found, let's check if the sender has the
1221
1221
// power to set it
1222
1222
let Some ( member) = parent_room. get_member ( & sender) . await ? else {
1223
1223
// Sender is not even in the parent room
@@ -3964,7 +3964,7 @@ pub enum ParentSpace {
3964
3964
Reciprocal ( Room ) ,
3965
3965
/// The room recognizes the given room as its parent, but the parent does
3966
3966
/// not recognizes it as its child. However, the author of the
3967
- /// `m.room .parent` event in the room has a sufficient power level in the
3967
+ /// `m.space .parent` event in the room has a sufficient power level in the
3968
3968
/// parent to create the child event.
3969
3969
WithPowerlevel ( Room ) ,
3970
3970
/// The room recognizes the given room as its parent, but the parent does
0 commit comments