From 0bd98a321d0706fa49aa1c2474b9d0949ea9bd37 Mon Sep 17 00:00:00 2001 From: miruka Date: Mon, 6 May 2019 23:37:49 -0400 Subject: [PATCH] Invalidate outbound sessions on room forget --- harmonyqml/backend/client.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/harmonyqml/backend/client.py b/harmonyqml/backend/client.py index 13072584..e3a8d651 100644 --- a/harmonyqml/backend/client.py +++ b/harmonyqml/backend/client.py @@ -284,4 +284,6 @@ class Client(QObject): @futurize() def forgetRoom(self, room_id: str) -> None: self.roomAboutToBeForgotten.emit(room_id) - return self.net.talk(self.nio.room_forget, room_id=room_id) + response = self.net.talk(self.nio.room_forget, room_id=room_id) + self.nio.invalidate_outbound_session(room_id) + return response