Make opening room members from rooms settings dialog work

This commit is contained in:
Loren Burkholder 2021-11-22 18:41:08 -05:00
parent 95887c87db
commit c09c0d35b8
2 changed files with 2 additions and 1 deletions

View file

@ -108,7 +108,7 @@ ApplicationWindow {
Layout.alignment: Qt.AlignHCenter
TapHandler {
onTapped: TimelineManager.openRoomMembers(roomSettings.roomId)
onSingleTapped: TimelineManager.openRoomMembers(Rooms.getRoomById(roomSettings.roomId))
}
CursorShape {

View file

@ -170,6 +170,7 @@ 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();