summary refs log tree commit diff
path: root/src
diff options
context:
space:
mode:
authorNicolas Werner <nicolas.werner@hotmail.de>2021-12-13 23:25:42 +0100
committerNicolas Werner <nicolas.werner@hotmail.de>2021-12-13 23:25:42 +0100
commitd46e517e3aad9f9daca5f54805101a5ea4826b69 (patch)
tree4cadb35dd2a3bdaaaf1a49ae95351c46edce73b1 /src
parentMultiply source size by scale factor (diff)
downloadnheko-d46e517e3aad9f9daca5f54805101a5ea4826b69.tar.xz
Only show room pack button, when you can actually create one
Diffstat (limited to 'src')
-rw-r--r--src/timeline/TimelineViewManager.cpp3
-rw-r--r--src/timeline/TimelineViewManager.h2
2 files changed, 3 insertions, 2 deletions
diff --git a/src/timeline/TimelineViewManager.cpp b/src/timeline/TimelineViewManager.cpp

index 3bc246b9..9303ee40 100644 --- a/src/timeline/TimelineViewManager.cpp +++ b/src/timeline/TimelineViewManager.cpp
@@ -418,7 +418,8 @@ TimelineViewManager::openImageOverlay(QString mxcUrl, QString eventId) void TimelineViewManager::openImagePackSettings(QString roomid) { - emit showImagePackSettings(new ImagePackListModel(roomid.toStdString(), this)); + auto room = rooms_->getRoomById(roomid).get(); + emit showImagePackSettings(room, new ImagePackListModel(roomid.toStdString(), this)); } void diff --git a/src/timeline/TimelineViewManager.h b/src/timeline/TimelineViewManager.h
index a4b49829..c282cc93 100644 --- a/src/timeline/TimelineViewManager.h +++ b/src/timeline/TimelineViewManager.h
@@ -91,7 +91,7 @@ signals: void openRoomSettingsDialog(RoomSettings *settings); void openInviteUsersDialog(InviteesModel *invitees); void openProfile(UserProfile *profile); - void showImagePackSettings(ImagePackListModel *packlist); + void showImagePackSettings(TimelineModel *room, ImagePackListModel *packlist); void openLeaveRoomDialog(QString roomid); public slots: