2
0
mirror of https://github.com/telegramdesktop/tdesktop synced 2025-08-31 06:26:18 +00:00

Requesting getDifference if some users or channels are not loaded

while processing updateNewChannelMessage update.
This commit is contained in:
John Preston
2016-04-06 15:07:05 +04:00
parent 13310206fa
commit 80b0667ff9
7 changed files with 94 additions and 7 deletions

View File

@@ -118,9 +118,7 @@ inline PeerId peerFromMessage(const MTPmessage &msg) {
inline MTPDmessage::Flags flagsFromMessage(const MTPmessage &msg) {
switch (msg.type()) {
case mtpc_message: return msg.c_message().vflags.v;
// dirty type hack :( we assume that MTPDmessage::Flags has the same flags and perhaps more
case mtpc_messageService: return MTPDmessage::Flags(QFlag(msg.c_messageService().vflags.v));
case mtpc_messageService: return mtpCastFlags(msg.c_messageService().vflags.v);
}
return 0;
}