aboutsummaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorKitsune Ral <Kitsune-Ral@users.sf.net>2019-12-23 21:48:16 +0300
committerKitsune Ral <Kitsune-Ral@users.sf.net>2019-12-23 21:48:16 +0300
commit92264831077874511341b2dabae255649f741f54 (patch)
tree54ff0b68e8d1968f301f44e5fa223e8b093185b5 /lib
parent04960510df6058b4f25d3c41001a519e9fc5ba4a (diff)
downloadlibquotient-92264831077874511341b2dabae255649f741f54.tar.gz
libquotient-92264831077874511341b2dabae255649f741f54.zip
Connection::forgetRoom: slightly simplify code
Diffstat (limited to 'lib')
-rw-r--r--lib/connection.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/connection.cpp b/lib/connection.cpp
index c13568f1..5bddbb83 100644
--- a/lib/connection.cpp
+++ b/lib/connection.cpp
@@ -804,7 +804,7 @@ ForgetRoomJob* Connection::forgetRoom(const QString& id)
if (!room)
room = d->roomMap.value({ id, true });
if (room && room->joinState() != JoinState::Leave) {
- auto leaveJob = room->leaveRoom();
+ auto leaveJob = leaveRoom(room);
connect(leaveJob, &BaseJob::result, this,
[this, leaveJob, forgetJob, room] {
if (leaveJob->error() == BaseJob::Success