Skip to content

Commit b51d1a2

Browse files
author
Isaac
committed
Fix chat list search reference cycle
1 parent b899216 commit b51d1a2

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

submodules/ChatListUI/Sources/ChatListSearchListPaneNode.swift

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3566,12 +3566,24 @@ final class ChatListSearchListPaneNode: ASDisplayNode, ChatListSearchPaneNode {
35663566
}
35673567
})
35683568
}, openStories: { peerId, avatarNode in
3569+
guard let strongSelf = self else {
3570+
return
3571+
}
35693572
strongSelf.interaction.openStories?(peerId, avatarNode)
35703573
}, openPublicPosts: {
3574+
guard let strongSelf = self else {
3575+
return
3576+
}
35713577
strongSelf.interaction.switchToFilter(.publicPosts)
35723578
}, openMessagesFilter: { sourceNode in
3579+
guard let strongSelf = self else {
3580+
return
3581+
}
35733582
strongSelf.openMessagesFilter(sourceNode: sourceNode)
35743583
}, switchMessagesFilter: { filter in
3584+
guard let strongSelf = self else {
3585+
return
3586+
}
35753587
strongSelf.searchScopePromise.set(.everywhere)
35763588
})
35773589
strongSelf.currentEntries = newEntries

0 commit comments

Comments
 (0)