aboutsummaryrefslogtreecommitdiff
path: root/room.cpp
diff options
context:
space:
mode:
authorKitsune Ral <Kitsune-Ral@users.sf.net>2017-10-14 05:22:37 +0200
committerKitsune Ral <Kitsune-Ral@users.sf.net>2017-10-14 09:17:33 +0200
commit8058139171897eea4a35325b98ba2f72a8c7303f (patch)
tree5af113020a750b1954b79ab0b7096a1d5afe8243 /room.cpp
parentee214de7b829b08155bc223ea64c61c9ce2bcdf3 (diff)
downloadlibquotient-8058139171897eea4a35325b98ba2f72a8c7303f.tar.gz
libquotient-8058139171897eea4a35325b98ba2f72a8c7303f.zip
Leaving a room now uses a generated Job file
Diffstat (limited to 'room.cpp')
-rw-r--r--room.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/room.cpp b/room.cpp
index 53d8fef1..50faae3e 100644
--- a/room.cpp
+++ b/room.cpp
@@ -21,6 +21,7 @@
#include "jobs/generated/kicking.h"
#include "jobs/generated/inviting.h"
#include "jobs/generated/banning.h"
+#include "jobs/generated/leaving.h"
#include "jobs/setroomstatejob.h"
#include "events/roomnameevent.h"
#include "events/roomaliasesevent.h"
@@ -32,7 +33,6 @@
#include "jobs/sendeventjob.h"
#include "jobs/roommessagesjob.h"
#include "jobs/postreceiptjob.h"
-#include "jobs/leaveroomjob.h"
#include "connection.h"
#include "user.h"
@@ -623,9 +623,9 @@ void Room::inviteToRoom(const QString& memberId)
connection()->callApi<InviteUserJob>(id(), memberId);
}
-void Room::leaveRoom()
+LeaveRoomJob* Room::leaveRoom()
{
- connection()->callApi<LeaveRoomJob>(id());
+ return connection()->callApi<LeaveRoomJob>(id());
}
void Room::kickMember(const QString& memberId, const QString& reason)