aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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