Manually cancel timeline listeners when a RoomScreen is torn down instead of waiting for a delayed deinit

This commit is contained in:
Stefan Ceriu
2023-02-23 15:22:09 +02:00
committed by Stefan Ceriu
parent 698b0aea44
commit 99d6caed4e
4 changed files with 11 additions and 7 deletions
@@ -60,6 +60,7 @@ final class RoomScreenCoordinator: CoordinatorProtocol {
}
func stop() {
parameters.roomProxy.removeTimelineListener()
viewModel.context.send(viewAction: .markRoomAsRead)
}