From 488510a94b352d817512aef7e12a07d564a20c62 Mon Sep 17 00:00:00 2001 From: George Hazan Date: Sat, 19 Oct 2024 18:57:54 +0300 Subject: fixes #4748 (Telegram: a link isn't parsed correctly being sent to the private chat) --- protocols/Telegram/src/server.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'protocols') 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; -- cgit v1.2.3