Skip to content

Commit

Permalink
fixup! event graph: make TimelineBuilder::build fallible
Browse files Browse the repository at this point in the history
  • Loading branch information
bnjbvr committed Jan 30, 2024
1 parent 1c1ecf0 commit a356a20
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions bindings/matrix-sdk-ffi/src/room_list.rs
Original file line number Diff line number Diff line change
Expand Up @@ -46,8 +46,8 @@ pub enum RoomListError {
TimelineAlreadyExists { room_name: String },
#[error("A timeline instance hasn't been initialized for room {room_name}")]
TimelineNotInitialized { room_name: String },
#[error("Timeline couldn't be initialized: {message}")]
InitializingTimeline { message: String },
#[error("Timeline couldn't be initialized: {error}")]
InitializingTimeline { error: String },
}

impl From<matrix_sdk_ui::room_list_service::Error> for RoomListError {
Expand All @@ -63,7 +63,7 @@ impl From<matrix_sdk_ui::room_list_service::Error> for RoomListError {
Self::TimelineAlreadyExists { room_name: room_id.to_string() }
}
InitializingTimeline(source) => {
Self::InitializingTimeline { message: source.to_string() }
Self::InitializingTimeline { error: source.to_string() }
}
}
}
Expand Down

0 comments on commit a356a20

Please sign in to comment.