diff options
author | Kitsune Ral <Kitsune-Ral@users.sf.net> | 2019-12-23 21:48:16 +0300 |
---|---|---|
committer | Kitsune Ral <Kitsune-Ral@users.sf.net> | 2019-12-23 21:48:16 +0300 |
commit | 92264831077874511341b2dabae255649f741f54 (patch) | |
tree | 54ff0b68e8d1968f301f44e5fa223e8b093185b5 /lib | |
parent | 04960510df6058b4f25d3c41001a519e9fc5ba4a (diff) | |
download | libquotient-92264831077874511341b2dabae255649f741f54.tar.gz libquotient-92264831077874511341b2dabae255649f741f54.zip |
Connection::forgetRoom: slightly simplify code
Diffstat (limited to 'lib')
-rw-r--r-- | lib/connection.cpp | 2 |
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 |