TelegramMessenger / Telegram-iOS

Telegram-iOS
6.4k stars 1.68k forks source link

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

Open v0s opened 4 months ago

v0s commented 4 months ago

Checklist

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:

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)

xqzr commented 3 months ago

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

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