mirror of
https://github.com/AyuGram/AyuGramDesktop.git
synced 2026-08-02 18:21:53 +00:00
fix: a bunch of fixes
TTL media, some crashes, useless code
This commit is contained in:
@@ -2292,22 +2292,6 @@ void Session::updateEditedMessage(const MTPMessage &data) {
|
||||
bool isDocument = media && media->document();
|
||||
|
||||
AyuMessages::getInstance().addEditedMessage(edit, existing);
|
||||
|
||||
if (!media || !(media->photo() || media->document()))
|
||||
{
|
||||
// history->addNewLocalMessage(
|
||||
// history->nextNonHistoryEntryId(),
|
||||
// flags,
|
||||
// UserId(),
|
||||
// existing->id,
|
||||
// base::unixtime::now(),
|
||||
// existing->author()->id,
|
||||
// "AyuGram"_q,
|
||||
// msg,
|
||||
// MTP_messageMediaEmpty(),
|
||||
// HistoryMessageMarkupData(),
|
||||
// existing->groupId().empty() ? 0 : existing->groupId().value);
|
||||
}
|
||||
}
|
||||
|
||||
proceed:
|
||||
|
||||
Reference in New Issue
Block a user