From f01940f57cd3365b42065dc8128dcbbdafca99f8 Mon Sep 17 00:00:00 2001 From: Nicolas Werner Date: Thu, 25 May 2023 19:07:13 +0200 Subject: Make emoji picker use the grid view --- src/timeline/TimelineViewManager.cpp | 3 +++ 1 file changed, 3 insertions(+) (limited to 'src/timeline/TimelineViewManager.cpp') diff --git a/src/timeline/TimelineViewManager.cpp b/src/timeline/TimelineViewManager.cpp index 4b171dc4..4b6a791f 100644 --- a/src/timeline/TimelineViewManager.cpp +++ b/src/timeline/TimelineViewManager.cpp @@ -478,6 +478,9 @@ TimelineViewManager::completerFor(const QString &completerName, const QString &r auto proxy = new CompletionProxyModel(stickerModel, 1, static_cast(-1) / 4); stickerModel->setParent(proxy); return proxy; + } else if (completerName == QLatin1String("emojigrid")) { + auto stickerModel = new GridImagePackModel(roomId.toStdString(), false); + return stickerModel; } else if (completerName == QLatin1String("stickergrid")) { auto stickerModel = new GridImagePackModel(roomId.toStdString(), true); return stickerModel; -- cgit 1.5.1