mirror of
https://github.com/AyuGram/AyuGramDesktop.git
synced 2025-06-03 21:54:05 +02:00
Allow editing confcall messages.
This commit is contained in:
parent
8f313b4603
commit
7c709fddba
1 changed files with 10 additions and 0 deletions
|
@ -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<Data::MediaCall>(
|
||||
this,
|
||||
Data::ComputeCallData(
|
||||
message.vaction().c_messageActionConferenceCall()));
|
||||
addToSharedMediaIndex();
|
||||
finishEdition(-1);
|
||||
_flags &= ~MessageFlag::DisplayFromChecked;
|
||||
} else if (isService()) {
|
||||
if (const auto reply = Get<HistoryMessageReply>()) {
|
||||
reply->clearData(this);
|
||||
|
|
Loading…
Add table
Reference in a new issue