mirror of
https://github.com/Swiftgram/Telegram-iOS.git
synced 2025-09-03 11:21:06 +00:00
Fix peer photo merge
This commit is contained in:
parent
975698a4cc
commit
72d0a221cd
@ -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 {
|
||||
|
Loading…
x
Reference in New Issue
Block a user