diff options
author | Nicolas Werner <nicolas.werner@hotmail.de> | 2021-12-27 06:23:36 +0100 |
---|---|---|
committer | Nicolas Werner <nicolas.werner@hotmail.de> | 2021-12-27 06:23:36 +0100 |
commit | ea6b19b3077dad0280e32aa762137728432e01f4 (patch) | |
tree | 038043c9f7796a498b86bfd514533e734b56d805 /src/timeline | |
parent | Add man page (#851) (diff) | |
download | nheko-ea6b19b3077dad0280e32aa762137728432e01f4.tar.xz |
Add an ugly custom emote completer using ~
Diffstat (limited to 'src/timeline')
-rw-r--r-- | src/timeline/TimelineViewManager.cpp | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/timeline/TimelineViewManager.cpp b/src/timeline/TimelineViewManager.cpp index 9303ee40..eb30fe8c 100644 --- a/src/timeline/TimelineViewManager.cpp +++ b/src/timeline/TimelineViewManager.cpp @@ -550,6 +550,11 @@ TimelineViewManager::completerFor(QString completerName, QString roomId) auto proxy = new CompletionProxyModel(stickerModel, 1, static_cast<size_t>(-1) / 4); stickerModel->setParent(proxy); return proxy; + } else if (completerName == "customEmoji") { + auto stickerModel = new CombinedImagePackModel(roomId.toStdString(), false); + auto proxy = new CompletionProxyModel(stickerModel); + stickerModel->setParent(proxy); + return proxy; } return nullptr; } |