Telegram-iOS icon indicating copy to clipboard operation
Telegram-iOS copied to clipboard

Cross-replying into a secret chat causes permanent local crash loop

Open v0s opened this issue 1 year ago • 1 comments

Checklist

  • [x] I am reporting an issue in existing functionality that does not work as intended
  • [x] I've searched for existing GitHub issues

Description

In Telegram, one can reply to a message into a different chat. On iOS, choosing a secret chat as the reply destination causes Telegram to crash, and additionally corrupts its database in such a way that the app crashes every time upon launch. The only way out is to reinstall the app (losing all secret chats).

Expected Behavior

One of the following:

  • The app shouldn't allow choosing a secret chat as reply destination /
  • It should send both the original message and the reply into the secret chat /
  • It should just send the reply text into the secret chat.

Actual Behavior

The app crashes, and its database is corrupted in such a way that it crashes at start, unable to fix that without reinstalling the app. This way, any secret chats are unrecoverable, due to the database being omitted in backups.

The other party gets a message with the original message's text and doesn't get the reply text.

Steps to Reproduce

  1. Start a secret chat
  2. In any non-secret chat, have any message that you can reply to
  3. Invoke the reply to this message
  4. Tap the "Reply to" bar for reply options, choose "Reply in Another Chat"
  5. Choose the secret chat as the destination for reply ⚠️ You are likely to lose all your secret chats on iOS after next step ⚠️
  6. Write any text and send the reply

Environment

Device: iPhone SE 2022

iOS version: 18.0 beta 4

App version: 10.14.2 (29212)

v0s avatar Jul 24 '24 19:07 v0s

我有同样的问题。 I have the same issue.

https://t.me/projectXray/3880401?thread=3880401 https://t.me/projectXray/3880444?thread=3880418

xqzr avatar Aug 17 '24 19:08 xqzr