matrix-org / matrix-rust-sdk

Matrix Client-Server SDK for Rust
Apache License 2.0
1.19k stars 235 forks source link

Fetching an invited room through the RoomListService fails #3848

Open stefanceriu opened 1 month ago

stefanceriu commented 1 month ago

Using the RoomListService to fetch a room by id, where that room is in the invited state has regresed and is now failing with

RoomListError
  ▿ InitializingTimeline : 1 element
    - error : "The room\'s encryption state is unknown."

This was introduced in https://github.com/matrix-org/matrix-rust-sdk/commit/bae0f304f7efc3c6a34d2ca805eb2d4b27189ce9#diff-dff33932423bfedc588739ae79f87f64f063a52aada9483069fb11bc5487c3b7R161-R162

stefanceriu commented 1 month ago

Turns out this is not necessarily a rust bug. The client asks to initialise the timeline when fetching a room and actually what's wrong over here. We'll switch away from that and not change anything on the rust side.

stefanceriu commented 3 weeks ago

Reopening this as it can't be solved on the client side only. Using full_room on a roomListItem on which the timeline hasn't been initialized failes as per https://github.com/matrix-org/matrix-rust-sdk/blob/main/bindings/matrix-sdk-ffi/src/room_list.rs#L616

The "full_room" is used to accept or decline and invite.