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,8 @@ protocol RoomProxyProtocol {
func addTimelineListener(listener: TimelineListener) -> Result<[TimelineItem], RoomProxyError>
func removeTimelineListener()
func paginateBackwards(requestSize: UInt, untilNumberOfItems: UInt) async -> Result<Void, RoomProxyError>
func sendReadReceipt(for eventID: String) async -> Result<Void, RoomProxyError>