aboutsummaryrefslogtreecommitdiff
path: root/connection.cpp
diff options
context:
space:
mode:
authorKitsune Ral <Kitsune-Ral@users.sf.net>2017-05-08 21:38:44 +0900
committerKitsune Ral <Kitsune-Ral@users.sf.net>2017-05-09 05:30:31 +0900
commitb903a3776aabb44863a9a9a4d83c6ee4e033cd5d (patch)
treeb1cac87efaca564fe4ae01c9d1ff8f84f9810b14 /connection.cpp
parent6431636e6a02d4fddb848e09e79156724e00f6f6 (diff)
downloadlibquotient-b903a3776aabb44863a9a9a4d83c6ee4e033cd5d.tar.gz
libquotient-b903a3776aabb44863a9a9a4d83c6ee4e033cd5d.zip
LeaveRoomJob now accepts a roomId, not a Room object; Room::leaveRoom() introduced; Connection and Room cleanup
Helps to better encapsulate Room
Diffstat (limited to 'connection.cpp')
-rw-r--r--connection.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/connection.cpp b/connection.cpp
index 8d5ff2fa..0c73e22d 100644
--- a/connection.cpp
+++ b/connection.cpp
@@ -208,7 +208,7 @@ JoinRoomJob* Connection::joinRoom(const QString& roomAlias)
void Connection::leaveRoom(Room* room)
{
- callApi<LeaveRoomJob>(room);
+ callApi<LeaveRoomJob>(room->id());
}
RoomMessagesJob* Connection::getMessages(Room* room, const QString& from) const