Invalidate outbound sessions on room forget

This commit is contained in:
miruka 2019-05-06 23:37:49 -04:00
parent e9592a7289
commit 0bd98a321d

View File

@ -284,4 +284,6 @@ class Client(QObject):
@futurize() @futurize()
def forgetRoom(self, room_id: str) -> None: def forgetRoom(self, room_id: str) -> None:
self.roomAboutToBeForgotten.emit(room_id) 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