Fix video members notices

This commit is contained in:
Ilya Laktyushin
2021-07-29 00:42:59 +03:00
parent e718f986e1
commit 1907a30d50
4 changed files with 43 additions and 24 deletions

View File

@@ -336,6 +336,10 @@ final class VoiceChatTilesGridItemNode: ListViewItemNode {
}
let _ = textApply()
if !transition.isAnimated && currentItem?.reachedLimit != item.reachedLimit {
strongSelf.backgroundNode.layer.removeAllAnimations()
strongSelf.limitLabel.layer.removeAllAnimations()
}
transition.updateFrame(node: strongSelf.limitLabel, frame: CGRect(origin: CGPoint(x: floorToScreenPixels((params.width - textLayout.size.width) / 2.0), y: gridSize.height + 10.0), size: textLayout.size))
transition.updateAlpha(node: strongSelf.limitLabel, alpha: item.reachedLimit ? 1.0 : 0.0)
}