Fixes #1482 - Popping the user back to the home screen after leaving a room.

This commit is contained in:
Stefan Ceriu
2021-08-13 17:02:47 +03:00
committed by Stefan Ceriu
parent 1f09ebb579
commit fa9d3eebb6
10 changed files with 25 additions and 2 deletions
@@ -106,7 +106,7 @@ final class RoomInfoListViewModel: NSObject, RoomInfoListViewModelType {
self.room.leave { (response) in
switch response {
case .success:
self.coordinatorDelegate?.roomInfoListViewModelDidCancel(self)
self.coordinatorDelegate?.roomInfoListViewModelDidLeaveRoom(self)
case .failure(let error):
self.startObservingSummaryChanges()
self.update(viewState: .error(error))