Contact menu

This commit is contained in:
Ali
2023-06-26 14:58:57 +03:00
parent f168c482f8
commit 163abf782b
5 changed files with 105 additions and 72 deletions

View File

@@ -2671,7 +2671,7 @@ public class ChatListControllerImpl: TelegramBaseController, ChatListController
}
})))
items.append(.action(ContextMenuActionItem(text: "Hide", icon: { theme in
items.append(.action(ContextMenuActionItem(text: "Move to Contacts", icon: { theme in
return generateTintedImage(image: UIImage(bundleImageName: "Chat/Context Menu/MoveToContacts"), color: theme.contextMenu.primaryColor)
}, action: { [weak self] _, f in
f(.dismissWithoutContent)
@@ -2680,8 +2680,6 @@ public class ChatListControllerImpl: TelegramBaseController, ChatListController
return
}
self.context.engine.peers.updatePeerStoriesHidden(id: peer.id, isHidden: true)
})))
}