summary refs log tree commit diff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/timeline/RoomlistModel.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/timeline/RoomlistModel.h b/src/timeline/RoomlistModel.h

index 5d0bcd53..b98a0dba 100644 --- a/src/timeline/RoomlistModel.h +++ b/src/timeline/RoomlistModel.h
@@ -170,6 +170,10 @@ public slots: RoomPreview currentRoomPreview() const { return roomlistmodel->currentRoomPreview(); } void setCurrentRoom(QString roomid) { roomlistmodel->setCurrentRoom(std::move(roomid)); } void resetCurrentRoom() { roomlistmodel->resetCurrentRoom(); } + TimelineModel *getRoomById(const QString &id) const + { + return roomlistmodel->getRoomById(id).data(); + } void nextRoomWithActivity(); void nextRoom();