summary refs log tree commit diff
path: root/src/ChatPage.cc
diff options
context:
space:
mode:
authorJani Mustonen <janijohannes@kapsi.fi>2017-11-15 18:38:50 +0200
committermujx <mujx@users.noreply.github.com>2017-11-15 18:38:50 +0200
commit4e1c8dd6639c2debe1e14c94e564237fb76ef48a (patch)
treeca25b85fbc2d1b87d5bbb41390e2edce5b166932 /src/ChatPage.cc
parentUpdate travis to qt5.9.2 (diff)
downloadnheko-4e1c8dd6639c2debe1e14c94e564237fb76ef48a.tar.xz
Implement a per-room send queue. (#118)
[ci skip]
Diffstat (limited to 'src/ChatPage.cc')
-rw-r--r--src/ChatPage.cc6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/ChatPage.cc b/src/ChatPage.cc
index b07729cf..4091086b 100644
--- a/src/ChatPage.cc
+++ b/src/ChatPage.cc
@@ -165,12 +165,12 @@ ChatPage::ChatPage(QSharedPointer<MatrixClient> client, QWidget *parent)
         connect(text_input_,
                 SIGNAL(sendTextMessage(const QString &)),
                 view_manager_,
-                SLOT(sendTextMessage(const QString &)));
+                SLOT(queueTextMessage(const QString &)));
 
         connect(text_input_,
                 SIGNAL(sendEmoteMessage(const QString &)),
                 view_manager_,
-                SLOT(sendEmoteMessage(const QString &)));
+                SLOT(queueEmoteMessage(const QString &)));
 
         connect(text_input_,
                 &TextInputWidget::sendJoinRoomRequest,
@@ -187,7 +187,7 @@ ChatPage::ChatPage(QSharedPointer<MatrixClient> client, QWidget *parent)
                 this,
                 [=](QString roomid, QString filename, QString url) {
                         text_input_->hideUploadSpinner();
-                        view_manager_->sendImageMessage(roomid, filename, url);
+                        view_manager_->queueImageMessage(roomid, filename, url);
                 });
 
         connect(client_.data(),