Skip to content

Commit a356a20

Browse files
committed
fixup! event graph: make TimelineBuilder::build fallible
1 parent 1c1ecf0 commit a356a20

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

bindings/matrix-sdk-ffi/src/room_list.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -46,8 +46,8 @@ pub enum RoomListError {
4646
TimelineAlreadyExists { room_name: String },
4747
#[error("A timeline instance hasn't been initialized for room {room_name}")]
4848
TimelineNotInitialized { room_name: String },
49-
#[error("Timeline couldn't be initialized: {message}")]
50-
InitializingTimeline { message: String },
49+
#[error("Timeline couldn't be initialized: {error}")]
50+
InitializingTimeline { error: String },
5151
}
5252

5353
impl From<matrix_sdk_ui::room_list_service::Error> for RoomListError {
@@ -63,7 +63,7 @@ impl From<matrix_sdk_ui::room_list_service::Error> for RoomListError {
6363
Self::TimelineAlreadyExists { room_name: room_id.to_string() }
6464
}
6565
InitializingTimeline(source) => {
66-
Self::InitializingTimeline { message: source.to_string() }
66+
Self::InitializingTimeline { error: source.to_string() }
6767
}
6868
}
6969
}

0 commit comments

Comments
 (0)