mirror of
https://github.com/AyuGram/AyuGramDesktop.git
synced 2025-04-15 21:57:10 +02:00
Fixed translation of non-server messages.
This commit is contained in:
parent
294432ceed
commit
7cdc3eb2b2
1 changed files with 4 additions and 0 deletions
|
@ -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)
|
||||
|
|
Loading…
Add table
Reference in a new issue