summary refs log tree commit diff
path: root/src
diff options
context:
space:
mode:
authorDeepBlueV7.X <nicolas.werner@hotmail.de>2021-12-16 01:15:21 +0100
committerGitHub <noreply@github.com>2021-12-16 01:15:21 +0100
commit2ffd476e8f4aae1fc5342942187cd0afb79a5cd1 (patch)
treeae86e6dfd1688753e734aab37ac3b4158f66f1d5 /src
parentStrip space chars from recovery passphrase (diff)
parentFix a few things (diff)
downloadnheko-2ffd476e8f4aae1fc5342942187cd0afb79a5cd1.tar.xz
Merge pull request #841 from LorenDB/qolImprovements
Quality-of-life improvements
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();