Skip to content

Commit 7fd224c

Browse files
committed
change how rooms are fetched after removing the timeline from the room list items
1 parent 5637038 commit 7fd224c

1 file changed

Lines changed: 3 additions & 8 deletions

File tree

internal/api/rust/rust.go

Lines changed: 3 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -636,21 +636,16 @@ func (c *RustClient) findRoom(t ct.TestLike, roomID string) *matrix_sdk_ffi.Room
636636
if err != nil {
637637
c.Logf(t, "allRooms.Room(%s) err: %s", roomID, err)
638638
} else if roomListItem != nil {
639-
if !roomListItem.IsTimelineInitialized() {
640-
if err = roomListItem.InitTimeline(nil, nil); err != nil {
641-
c.Logf(t, "allRooms.InitTimeline(%s) err: %s", roomID, err)
642-
}
643-
}
644-
room, err := roomListItem.FullRoom()
639+
room, err := c.FFIClient.GetRoom(roomID)
645640
if err != nil {
646641
c.Logf(t, "allRooms.FullRoom(%s) err: %s", roomID, err)
647642
} else {
648643
c.roomsMu.Lock()
649644
c.rooms[roomID] = &RustRoomInfo{
650-
room: room,
645+
room: *room,
651646
}
652647
c.roomsMu.Unlock()
653-
return room
648+
return *room
654649
}
655650
}
656651
}

0 commit comments

Comments
 (0)