mirror of
https://github.com/AyuGram/AyuGramDesktop.git
synced 2025-06-05 06:33:57 +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>();
|
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)
|
||||||
|
|
Loading…
Add table
Reference in a new issue