summary refs log tree commit diff
path: root/src/timeline/TimelineViewManager.cpp
diff options
context:
space:
mode:
authorNicolas Werner <nicolas.werner@hotmail.de>2023-05-19 03:15:55 +0200
committerNicolas Werner <nicolas.werner@hotmail.de>2023-05-20 00:57:47 +0200
commit0dfdba4316c18fe92f0d0b441236361091cdc758 (patch)
treeccc50e004bbe4f3e12692053e25fa556634c0ff1 /src/timeline/TimelineViewManager.cpp
parentMerge pull request #1456 from Nheko-Reborn/inputfocus (diff)
downloadnheko-0dfdba4316c18fe92f0d0b441236361091cdc758.tar.xz
Add rows to stickerpicker
Diffstat (limited to '')
-rw-r--r--src/timeline/TimelineViewManager.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/timeline/TimelineViewManager.cpp b/src/timeline/TimelineViewManager.cpp
index 44f288c6..4b171dc4 100644
--- a/src/timeline/TimelineViewManager.cpp
+++ b/src/timeline/TimelineViewManager.cpp
@@ -17,6 +17,7 @@
 #include "CommandCompleter.h"
 #include "CompletionProxyModel.h"
 #include "EventAccessors.h"
+#include "GridImagePackModel.h"
 #include "ImagePackListModel.h"
 #include "InviteesModel.h"
 #include "Logging.h"
@@ -477,6 +478,9 @@ TimelineViewManager::completerFor(const QString &completerName, const QString &r
         auto proxy        = new CompletionProxyModel(stickerModel, 1, static_cast<size_t>(-1) / 4);
         stickerModel->setParent(proxy);
         return proxy;
+    } else if (completerName == QLatin1String("stickergrid")) {
+        auto stickerModel = new GridImagePackModel(roomId.toStdString(), true);
+        return stickerModel;
     } else if (completerName == QLatin1String("customEmoji")) {
         auto stickerModel = new CombinedImagePackModel(roomId.toStdString(), false);
         auto proxy        = new CompletionProxyModel(stickerModel);