aboutsummaryrefslogtreecommitdiff
path: root/connection.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'connection.cpp')
-rw-r--r--connection.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/connection.cpp b/connection.cpp
index 56ceb068..f9f1490c 100644
--- a/connection.cpp
+++ b/connection.cpp
@@ -23,7 +23,7 @@
#include "room.h"
#include "jobs/passwordlogin.h"
#include "jobs/logoutjob.h"
-#include "jobs/postmessagejob.h"
+#include "jobs/sendeventjob.h"
#include "jobs/postreceiptjob.h"
#include "jobs/joinroomjob.h"
#include "jobs/leaveroomjob.h"
@@ -187,7 +187,7 @@ void Connection::stopSync()
void Connection::postMessage(Room* room, const QString& type, const QString& message) const
{
- callApi<PostMessageJob>(room->id(), type, message);
+ callApi<SendEventJob>(room->id(), type, message);
}
PostReceiptJob* Connection::postReceipt(Room* room, RoomEvent* event) const