Fixed translation of non-server messages.

This commit is contained in:
23rd 2022-11-23 14:35:10 +03:00 committed by John Preston
parent 294432ceed
commit 7cdc3eb2b2

View file

@ -159,6 +159,10 @@ void TranslateBox(
}; };
const auto state = box->lifetime().make_state<State>(); const auto state = box->lifetime().make_state<State>();
if (!IsServerMsgId(msgId)) {
msgId = 0;
}
using Flag = MTPmessages_translateText::Flag; using Flag = MTPmessages_translateText::Flag;
const auto flags = msgId const auto flags = msgId
? (Flag::f_peer | Flag::f_msg_id) ? (Flag::f_peer | Flag::f_msg_id)