2
0
mirror of https://github.com/kotatogram/kotatogram-desktop synced 2025-08-31 22:55:11 +00:00

Update API and use WebDocument for inline bots.

This commit is contained in:
John Preston
2018-03-04 23:04:13 +03:00
parent 09aba596ac
commit 0f901b3728
18 changed files with 536 additions and 238 deletions

View File

@@ -2030,8 +2030,15 @@ ConnectionPrivate::HandleResult ConnectionPrivate::handleOneReceived(const mtpPr
QWriteLocker locker(sessionData->haveReceivedMutex());
sessionData->haveReceivedUpdates().push_back(SerializedMessage(update));
if (cons != mtpc_updatesTooLong && cons != mtpc_updateShortMessage && cons != mtpc_updateShortChatMessage && cons != mtpc_updateShortSentMessage && cons != mtpc_updateShort && cons != mtpc_updatesCombined && cons != mtpc_updates) {
LOG(("Message Error: unknown constructor %1").arg(cons)); // maybe new api?..
if (cons != mtpc_updatesTooLong
&& cons != mtpc_updateShortMessage
&& cons != mtpc_updateShortChatMessage
&& cons != mtpc_updateShortSentMessage
&& cons != mtpc_updateShort
&& cons != mtpc_updatesCombined
&& cons != mtpc_updates) {
// Maybe some new unknown update?
LOG(("Message Error: unknown constructor %1").arg(cons));
}
} else {
LOG(("Message Error: unexpected updates in dcType: %1").arg(static_cast<int>(_dcType)));