diff options
author | Kitsune Ral <Kitsune-Ral@users.sf.net> | 2017-10-14 05:22:37 +0200 |
---|---|---|
committer | Kitsune Ral <Kitsune-Ral@users.sf.net> | 2017-10-14 09:17:33 +0200 |
commit | 8058139171897eea4a35325b98ba2f72a8c7303f (patch) | |
tree | 5af113020a750b1954b79ab0b7096a1d5afe8243 /room.cpp | |
parent | ee214de7b829b08155bc223ea64c61c9ce2bcdf3 (diff) | |
download | libquotient-8058139171897eea4a35325b98ba2f72a8c7303f.tar.gz libquotient-8058139171897eea4a35325b98ba2f72a8c7303f.zip |
Leaving a room now uses a generated Job file
Diffstat (limited to 'room.cpp')
-rw-r--r-- | room.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -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) |