Debugging

This commit is contained in:
Isaac
2025-02-15 13:04:30 +04:00
parent be055bfd8b
commit aaee014955
2 changed files with 6 additions and 1 deletions

View File

@@ -1952,6 +1952,11 @@ public final class ChatMessageInteractiveMediaNode: ASDisplayNode, GalleryItemTr
videoNode.isUserInteractionEnabled = false
var firstTime = true
videoNode.ownsContentNodeUpdated = { [weak self] owns in
/*#if DEBUG
// Debug memory leak
let _ = videoNode.videoQualityState()
#endif*/
if let strongSelf = self, let videoNode = strongSelf.videoNode {
if firstTime {
firstTime = false