"Clear chat" option is confusingly shown when selecting multiple messages
Checklist
I am reporting an issue in existing functionality that does not work as intended I've searched for existing GitHub issues
Description
When selecting multiple messages in a conversation for deletion, a user must click on the trash icon on the bottom left corner. However, simultaneously the option "clear chat" comes up at the top. Since the popup dialogs that come up when interacting with either option are quite similar, it ends up being misleading, and a user which is distracted can mistakenly erase their entire chat history with a contact.
Expected Behavior
I would expect one of 2 behaviors, in descending order of preference: Behavior A - The "clear chat" option is removed. This would make Telegram-iOS consistent with Telegram-android, since on the android app there are only copy/forward/delete options (for the selected messages), but no "clear chat" option. This functionality would be available from the conversation options (press conversation header, then "more").
Behavior B - The "clear chat" option remains. However, selecting it brings up the "clear history" interface used in the android app (accessed by pressing the 3 dots on the top right of a conversation). It would make it harder for a user to confuse it with the "delete" interface. An additional check (a "are you sure" dialog box) would also preferrably be added, just in case a user is really distracted, or pressed that area of the screen by muscle memory.
Steps to Reproduce
Open a conversation on Telegram for iOS. Select one or more messages. Try deleting it using the trash icon (you can cancel once the dialog pops up). Select messages again. "Accidentally" press "clear chat", and notice how similar the interface is.
Note: granted, once you clear chat, there is a 5 second undo option. However if one is distracted, or if they lock their device immediately after clearing chat (which happened to me), there goes a conversation, with no way to recover it ever again.
Crazy how many memories can be lost in an instant.
Screenshots
Screenshots of the android and iOS interfaces while selecting messages and selecting delete/clear chat available here
Environment
Device: iPhone XS
iOS version
15.0.1
App version
8.1.2
This is a very pressing issue; I don't understand why it's been ignored since 2021.
Today, I was hasty and accidentally deleted a conversation between me and my best friend. And in the five seconds it took to undo the action, I didn't even realize what had happened. I thought the chat simply didn't load.
It's incredibly frustrating that with two clicks you can lose seven years of conversations, photos, videos, circles, etc. with your best friend.
The idea proposed by the author would be much better than what we have now.