diff options
-rw-r--r-- | protocols/Telegram/src/server.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/protocols/Telegram/src/server.cpp b/protocols/Telegram/src/server.cpp index 0bce32d512..5c47412389 100644 --- a/protocols/Telegram/src/server.cpp +++ b/protocols/Telegram/src/server.cpp @@ -289,8 +289,6 @@ void CTelegramProto::ProcessResponse(td::ClientManager::Response response) if (auto hDbEvent = db_event_getById(m_szModuleName, szOldId))
db_event_updateId(hDbEvent, msg2id(pMessage));
- ProcessMessage(pMessage);
-
TG_OWN_MESSAGE tmp(0, 0, szOldId);
if (auto *pOwnMsg = m_arOwnMsg.find(&tmp)) {
auto szMsgId = msg2id(pMessage);
@@ -301,6 +299,8 @@ void CTelegramProto::ProcessResponse(td::ClientManager::Response response) db_event_delivered(pOwnMsg->hContact, hDbEvent);
m_arOwnMsg.remove(pOwnMsg);
}
+
+ ProcessMessage(pMessage);
}
break;
|