Fix peer photo merge

This commit is contained in:
Ali 2021-03-12 16:59:51 +04:00
parent 975698a4cc
commit 72d0a221cd

View File

@ -87,7 +87,15 @@ extension TelegramUser {
if !isMin {
return TelegramUser(user: rhs)
} else {
let telegramPhoto = photo.flatMap(parsedTelegramProfilePhoto) ?? []
let telegramPhoto: [TelegramMediaImageRepresentation]
if let photo = photo {
telegramPhoto = parsedTelegramProfilePhoto(photo)
} else if let currentPhoto = lhs?.photo {
telegramPhoto = currentPhoto
} else {
telegramPhoto = []
}
if let lhs = lhs {
var userFlags: UserInfoFlags = []
if (flags & (1 << 17)) != 0 {