diff options
Diffstat (limited to 'connection.cpp')
-rw-r--r-- | connection.cpp | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/connection.cpp b/connection.cpp index 56628a07..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" @@ -32,7 +32,6 @@ #include "jobs/mediathumbnailjob.h" #include <QtNetwork/QDnsLookup> -#include <QtCore/QDebug> using namespace QMatrixClient; @@ -188,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 @@ -316,3 +315,8 @@ Room* Connection::createRoom(const QString& roomId) { return new Room(this, roomId); } + +QByteArray Connection::generateTxnId() +{ + return d->data->generateTxnId(); +} |