summary refs log tree commit diff
path: root/src/timeline
diff options
context:
space:
mode:
authorJedi18 <targetakhil@gmail.com>2021-02-16 00:47:17 +0530
committerJedi18 <targetakhil@gmail.com>2021-02-16 00:50:28 +0530
commit19dbbb2c6cffdf0697635f08acf3af9138aed7b9 (patch)
treeefdb6a1d7d776daec8cd8edb8d202a50f0da2935 /src/timeline
parentAdd double tap to reply feature (diff)
downloadnheko-19dbbb2c6cffdf0697635f08acf3af9138aed7b9.tar.xz
add rooms model, add room delegate for completer
Diffstat (limited to 'src/timeline')
-rw-r--r--src/timeline/InputBar.cpp6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/timeline/InputBar.cpp b/src/timeline/InputBar.cpp
index 08cbd15b..49fa5249 100644
--- a/src/timeline/InputBar.cpp
+++ b/src/timeline/InputBar.cpp
@@ -23,6 +23,7 @@
 #include "TimelineViewManager.h"
 #include "UserSettingsPage.h"
 #include "UsersModel.h"
+#include "RoomsModel.h"
 #include "Utils.h"
 #include "dialogs/PreviewUploadOverlay.h"
 #include "emoji/EmojiModel.h"
@@ -186,6 +187,11 @@ InputBar::completerFor(QString completerName)
                 auto proxy      = new CompletionProxyModel(emojiModel);
                 emojiModel->setParent(proxy);
                 return proxy;
+        } else if (completerName == "room") {
+                auto roomModel = new RoomsModel();
+                auto proxy     = new CompletionProxyModel(roomModel);
+                roomModel->setParent(proxy);
+                return proxy;
         }
         return nullptr;
 }