Skip to content

Commit 3780e44

Browse files
committed
chore(ui): Move an inline comment.
This patch moves an inline comment in its correct place. Code was inserted between the comment and the part of the code it was documenting.
1 parent 857144b commit 3780e44

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

crates/matrix-sdk-ui/src/timeline/builder.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -246,9 +246,6 @@ impl TimelineBuilder {
246246
})
247247
};
248248

249-
// Not using room.add_event_handler here because RoomKey events are
250-
// to-device events that are not received in the context of a room.
251-
252249
let room_key_handle = client.add_event_handler(handle_room_key_event(
253250
controller.clone(),
254251
room.room_id().to_owned(),
@@ -261,6 +258,9 @@ impl TimelineBuilder {
261258

262259
let handles = vec![room_key_handle, forwarded_room_key_handle];
263260

261+
// Not using room.add_event_handler here because RoomKey events are
262+
// to-device events that are not received in the context of a room.
263+
264264
let room_key_from_backups_join_handle = spawn(room_keys_from_backups_task(
265265
client.encryption().backups().room_keys_for_room_stream(controller.room().room_id()),
266266
controller.clone(),

0 commit comments

Comments
 (0)