From 7cdc3eb2b2b4063a9f26931be164ae749b898e92 Mon Sep 17 00:00:00 2001 From: 23rd <23rd@vivaldi.net> Date: Wed, 23 Nov 2022 14:35:10 +0300 Subject: [PATCH] Fixed translation of non-server messages. --- Telegram/SourceFiles/boxes/translate_box.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/Telegram/SourceFiles/boxes/translate_box.cpp b/Telegram/SourceFiles/boxes/translate_box.cpp index 9fdbf395a..e1e2dc0db 100644 --- a/Telegram/SourceFiles/boxes/translate_box.cpp +++ b/Telegram/SourceFiles/boxes/translate_box.cpp @@ -159,6 +159,10 @@ void TranslateBox( }; const auto state = box->lifetime().make_state<State>(); + if (!IsServerMsgId(msgId)) { + msgId = 0; + } + using Flag = MTPmessages_translateText::Flag; const auto flags = msgId ? (Flag::f_peer | Flag::f_msg_id)