Skip to content

Commit

Permalink
Add new roomListItem.IsTimelineInitialized function
Browse files Browse the repository at this point in the history
  • Loading branch information
kegsay committed Feb 12, 2024
1 parent ca15860 commit 8780edf
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions internal/api/rust/rust.go
Original file line number Diff line number Diff line change
Expand Up @@ -340,6 +340,11 @@ func (c *RustClient) findRoom(t ct.TestLike, roomID string) *matrix_sdk_ffi.Room
if err != nil {
c.Logf(t, "allRooms.Room(%s) err: %s", roomID, err)
} else if roomListItem != nil {
if !roomListItem.IsTimelineInitialized() {
if err = roomListItem.InitTimeline(nil); err != nil {
c.Logf(t, "allRooms.InitTimeline(%s) err: %s", roomID, err)
}
}
room, err := roomListItem.FullRoom()
if err != nil {
c.Logf(t, "allRooms.FullRoom(%s) err: %s", roomID, err)
Expand Down

0 comments on commit 8780edf

Please sign in to comment.