From 7c709fddba500cf0b4b52ccb2b3db2197e3a93ca Mon Sep 17 00:00:00 2001 From: John Preston Date: Mon, 31 Mar 2025 00:48:03 +0500 Subject: [PATCH] Allow editing confcall messages. --- Telegram/SourceFiles/history/history_item.cpp | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/Telegram/SourceFiles/history/history_item.cpp b/Telegram/SourceFiles/history/history_item.cpp index 43a732f3e9..3330c835c6 100644 --- a/Telegram/SourceFiles/history/history_item.cpp +++ b/Telegram/SourceFiles/history/history_item.cpp @@ -1900,6 +1900,16 @@ void HistoryItem::applyEdition(const MTPDmessageService &message) { applyServiceDateEdition(message); finishEditionToEmpty(); _flags &= ~MessageFlag::DisplayFromChecked; + } else if (message.vaction().type() == mtpc_messageActionConferenceCall) { + removeFromSharedMediaIndex(); + _media = nullptr; + _media = std::make_unique( + this, + Data::ComputeCallData( + message.vaction().c_messageActionConferenceCall())); + addToSharedMediaIndex(); + finishEdition(-1); + _flags &= ~MessageFlag::DisplayFromChecked; } else if (isService()) { if (const auto reply = Get()) { reply->clearData(this);