Fix strong reference cycle between RoomProxy and RoomTimelineProvider

This commit is contained in:
Stefan Ceriu
2022-09-28 10:14:02 +03:00
committed by Stefan Ceriu
parent 40d80e1b90
commit e2af796d4a
5 changed files with 10 additions and 10 deletions
@@ -41,6 +41,10 @@ class RoomTimelineProvider: RoomTimelineProviderProtocol {
init(roomProxy: RoomProxyProtocol) {
self.roomProxy = roomProxy
itemProxies = []
Task {
await roomProxy.addTimelineListener(listener: WeakRoomTimelineProviderWrapper(timelineProvider: self))
}
}
func paginateBackwards(_ count: UInt) async -> Result<Void, RoomTimelineProviderError> {