mirror of
https://github.com/Swiftgram/Telegram-iOS.git
synced 2025-06-16 05:55:20 +00:00
Fix chat list search reference cycle
This commit is contained in:
parent
b899216b8c
commit
b51d1a2de8
@ -3566,12 +3566,24 @@ final class ChatListSearchListPaneNode: ASDisplayNode, ChatListSearchPaneNode {
|
|||||||
}
|
}
|
||||||
})
|
})
|
||||||
}, openStories: { peerId, avatarNode in
|
}, openStories: { peerId, avatarNode in
|
||||||
|
guard let strongSelf = self else {
|
||||||
|
return
|
||||||
|
}
|
||||||
strongSelf.interaction.openStories?(peerId, avatarNode)
|
strongSelf.interaction.openStories?(peerId, avatarNode)
|
||||||
}, openPublicPosts: {
|
}, openPublicPosts: {
|
||||||
|
guard let strongSelf = self else {
|
||||||
|
return
|
||||||
|
}
|
||||||
strongSelf.interaction.switchToFilter(.publicPosts)
|
strongSelf.interaction.switchToFilter(.publicPosts)
|
||||||
}, openMessagesFilter: { sourceNode in
|
}, openMessagesFilter: { sourceNode in
|
||||||
|
guard let strongSelf = self else {
|
||||||
|
return
|
||||||
|
}
|
||||||
strongSelf.openMessagesFilter(sourceNode: sourceNode)
|
strongSelf.openMessagesFilter(sourceNode: sourceNode)
|
||||||
}, switchMessagesFilter: { filter in
|
}, switchMessagesFilter: { filter in
|
||||||
|
guard let strongSelf = self else {
|
||||||
|
return
|
||||||
|
}
|
||||||
strongSelf.searchScopePromise.set(.everywhere)
|
strongSelf.searchScopePromise.set(.everywhere)
|
||||||
})
|
})
|
||||||
strongSelf.currentEntries = newEntries
|
strongSelf.currentEntries = newEntries
|
||||||
|
Loading…
x
Reference in New Issue
Block a user