mirror of
https://github.com/AyuGram/AyuGramDesktop.git
synced 2025-04-15 13:47:05 +02:00
fix: make it compile
This commit is contained in:
parent
7cdbbc318a
commit
c102f4c0e5
3 changed files with 4 additions and 1255 deletions
File diff suppressed because it is too large
Load diff
|
@ -258,7 +258,7 @@ std::unique_ptr<Data::Media> HistoryItem::CreateMedia(
|
|||
});
|
||||
}, [&](const MTPDmessageMediaDocument &media) -> Result {
|
||||
const auto document = media.vdocument();
|
||||
if (media.vttl_seconds() && false) { // AyuGram: show expiring messages
|
||||
if (false) { // AyuGram: show expiring messages
|
||||
LOG(("App Error: "
|
||||
"Unexpected MTPMessageMediaDocument "
|
||||
"with ttl_seconds in CreateMedia."));
|
||||
|
@ -371,7 +371,7 @@ HistoryItem::HistoryItem(
|
|||
setServiceText({
|
||||
tr::lng_message_empty(tr::now, Ui::Text::WithEntities)
|
||||
});
|
||||
} else if (checked == MediaCheckResult::HasTimeToLive && false) { // AyuGram: show expiring messages
|
||||
} else if (checked == MediaCheckResult::HasExpiredMediaTimeToLive) {
|
||||
createServiceFromMtp(data);
|
||||
applyTTL(data);
|
||||
} else if (checked == MediaCheckResult::HasStoryMention) {
|
||||
|
@ -382,7 +382,7 @@ HistoryItem::HistoryItem(
|
|||
createComponents(data);
|
||||
if (media) {
|
||||
setMedia(*media);
|
||||
if (checked == MediaCheckResult::HasTimeToLive) {
|
||||
if (checked == MediaCheckResult::HasUnsupportedTimeToLive) {
|
||||
media->match([&](const MTPDmessageMediaPhoto &media) {
|
||||
auto time = media.vttl_seconds()->v;
|
||||
setAyuHint(formatTTL(time));
|
||||
|
|
|
@ -1 +1 @@
|
|||
Subproject commit f6495b47950b0b42a9519769eff6c6deab9fc97a
|
||||
Subproject commit b63dcdb357f9905be45dd30debc419ac4194422f
|
Loading…
Add table
Reference in a new issue