mirror of
https://github.com/Swiftgram/Telegram-iOS.git
synced 2025-08-02 00:17:02 +00:00
Video avatar fixes
This commit is contained in:
parent
63a32bcbd8
commit
fcd7dce58e
@ -666,9 +666,7 @@ const CGFloat TGPhotoTextSelectionViewHandleSide = 30.0f;
|
|||||||
[self.path appendPath:[UIBezierPath bezierPathWithRoundedRect:cur cornerRadius:_radius]];
|
[self.path appendPath:[UIBezierPath bezierPathWithRoundedRect:cur cornerRadius:_radius]];
|
||||||
if (i == 0) {
|
if (i == 0) {
|
||||||
last = cur;
|
last = cur;
|
||||||
|
} else if (i > 0 && fabs(CGRectGetMaxY(last) - CGRectGetMinY(cur)) < 10.0) {
|
||||||
//&& fabs(CGRectGetMaxY(last) - CGRectGetMinY(cur)) < 10.0
|
|
||||||
} else if (i > 0) {
|
|
||||||
CGPoint a = cur.origin;
|
CGPoint a = cur.origin;
|
||||||
CGPoint b = CGPointMake(CGRectGetMaxX(cur), cur.origin.y);
|
CGPoint b = CGPointMake(CGRectGetMaxX(cur), cur.origin.y);
|
||||||
CGPoint c = CGPointMake(last.origin.x, CGRectGetMaxY(last));
|
CGPoint c = CGPointMake(last.origin.x, CGRectGetMaxY(last));
|
||||||
|
@ -209,6 +209,12 @@ final class PeerInfoAvatarListItemNode: ASDisplayNode {
|
|||||||
if self.isCentral {
|
if self.isCentral {
|
||||||
self.setupVideoPlayback()
|
self.setupVideoPlayback()
|
||||||
} else {
|
} else {
|
||||||
|
if let videoNode = self.videoNode {
|
||||||
|
self.videoNode = nil
|
||||||
|
Queue.mainQueue().after(0.5) {
|
||||||
|
videoNode.removeFromSupernode()
|
||||||
|
}
|
||||||
|
}
|
||||||
// self.preloadDisposable.set(preloadVideoResource(postbox: self.context.account.postbox, resourceReference: ))
|
// self.preloadDisposable.set(preloadVideoResource(postbox: self.context.account.postbox, resourceReference: ))
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user