mirror of
https://github.com/TelegramMessenger/Telegram-iOS.git
synced 2026-07-06 03:33:41 +02:00
Video avatar fixes
This commit is contained in:
parent
eebcab90b9
commit
aaff05021d
14 changed files with 320 additions and 88 deletions
|
|
@ -219,8 +219,9 @@ struct ChatRecentActionsEntry: Comparable, Identifiable {
|
|||
peers[peer.id] = peer
|
||||
|
||||
var photo: TelegramMediaImage?
|
||||
if !new.isEmpty {
|
||||
photo = TelegramMediaImage(imageId: MediaId(namespace: 0, id: 0), representations: new, immediateThumbnailData: nil, reference: nil, partialReference: nil, flags: [])
|
||||
let (newPhoto, newVideo) = new
|
||||
if !newPhoto.isEmpty || !newVideo.isEmpty {
|
||||
photo = TelegramMediaImage(imageId: MediaId(namespace: 0, id: 0), representations: newPhoto, videoRepresentations: newVideo, immediateThumbnailData: nil, reference: nil, partialReference: nil, flags: [])
|
||||
}
|
||||
|
||||
let action = TelegramMediaActionType.photoUpdated(image: photo)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue