mirror of
https://github.com/AyuGram/AyuGramDesktop.git
synced 2025-04-16 22:27:20 +02:00
Version 4.9.2: Fix build with GCC.
This commit is contained in:
parent
1d26a01144
commit
20ad39bdf9
2 changed files with 0 additions and 29 deletions
|
@ -72,7 +72,6 @@ public:
|
|||
Row(not_null<RowDelegate*> delegate, const EntryData &data);
|
||||
|
||||
void update(const EntryData &data);
|
||||
void updateName(const QString &name);
|
||||
|
||||
[[nodiscard]] EntryData data() const;
|
||||
|
||||
|
@ -525,12 +524,6 @@ void Row::update(const EntryData &data) {
|
|||
_delegate->rowUpdateRow(this);
|
||||
}
|
||||
|
||||
void Row::updateName(const QString &name) {
|
||||
_data.name = name;
|
||||
refreshName(st::sessionListItem);
|
||||
_delegate->rowUpdateRow(this);
|
||||
}
|
||||
|
||||
EntryData Row::data() const {
|
||||
return _data;
|
||||
}
|
||||
|
|
|
@ -64,28 +64,6 @@ constexpr auto ByDocument = [](const auto &entry) {
|
|||
return 0;
|
||||
}
|
||||
|
||||
[[nodiscard]] PhotoData *ItemPhoto(not_null<HistoryItem*> item) {
|
||||
if (const auto media = item->media()) {
|
||||
if (const auto page = media->webpage()) {
|
||||
return page->document ? nullptr : page->photo;
|
||||
} else if (const auto photo = media->photo()) {
|
||||
return photo;
|
||||
}
|
||||
}
|
||||
return nullptr;
|
||||
}
|
||||
|
||||
[[nodiscard]] DocumentData *ItemDocument(not_null<HistoryItem*> item) {
|
||||
if (const auto media = item->media()) {
|
||||
if (const auto page = media->webpage()) {
|
||||
return page->document;
|
||||
} else if (const auto document = media->document()) {
|
||||
return document;
|
||||
}
|
||||
}
|
||||
return nullptr;
|
||||
}
|
||||
|
||||
[[nodiscard]] bool ItemContainsMedia(const DownloadObject &object) {
|
||||
if (const auto photo = object.photo) {
|
||||
if (const auto media = object.item->media()) {
|
||||
|
|
Loading…
Add table
Reference in a new issue