summaryrefslogtreecommitdiff
path: root/protocols/Telegram
diff options
context:
space:
mode:
authorGeorge Hazan <george.hazan@gmail.com>2024-10-19 18:57:54 +0300
committerGeorge Hazan <george.hazan@gmail.com>2024-10-19 18:57:54 +0300
commit488510a94b352d817512aef7e12a07d564a20c62 (patch)
tree5eea9be0b6d968ee54cecbac525c084ceef087bb /protocols/Telegram
parentaf1fff9cf602bb61539cdc4da9effe9058af26ff (diff)
fixes #4748 (Telegram: a link isn't parsed correctly being sent to the private chat)
Diffstat (limited to 'protocols/Telegram')
-rw-r--r--protocols/Telegram/src/server.cpp4
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;