mirror of
https://github.com/Swiftgram/Telegram-iOS.git
synced 2025-06-16 05:55:20 +00:00
Fix avatar removal
This commit is contained in:
parent
9dd7c42f27
commit
d6243fb78b
@ -474,7 +474,12 @@ public class AvatarGalleryController: ViewController, StandalonePresentableContr
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
private func deleteEntry(_ entry: AvatarGalleryEntry) {
|
private func deleteEntry(_ rawEntry: AvatarGalleryEntry) {
|
||||||
|
var entry = rawEntry
|
||||||
|
if case .topImage = entry, !self.entries.isEmpty {
|
||||||
|
entry = self.entries[0]
|
||||||
|
}
|
||||||
|
|
||||||
switch entry {
|
switch entry {
|
||||||
case .topImage:
|
case .topImage:
|
||||||
if self.peer.id == self.context.account.peerId {
|
if self.peer.id == self.context.account.peerId {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user