Add manual account deletion

This commit is contained in:
Ilya Laktyushin
2022-06-28 22:22:21 +03:00
parent ecc9279281
commit 25a09c5451
27 changed files with 1383 additions and 81 deletions

View File

@@ -84,6 +84,8 @@ public final class SelectablePeerNode: ASDisplayNode {
private var peer: EngineRenderedPeer?
public var compact = false
public var theme: SelectablePeerNodeTheme = SelectablePeerNodeTheme(textColor: .black, secretTextColor: .green, selectedTextColor: .blue, checkBackgroundColor: .white, checkFillColor: .blue, checkColor: .white, avatarPlaceholderColor: .white) {
didSet {
if !self.theme.isEqual(to: oldValue) {
@@ -147,7 +149,7 @@ public final class SelectablePeerNode: ASDisplayNode {
let text: String
var overrideImage: AvatarNodeImageOverride?
if peer.peerId == context.account.peerId {
text = strings.DialogList_SavedMessages
text = self.compact ? strings.DeleteAccount_SavedMessages : strings.DialogList_SavedMessages
overrideImage = .savedMessagesIcon
} else if peer.peerId.isReplies {
text = strings.DialogList_Replies