2
0
mirror of https://github.com/kotatogram/kotatogram-desktop synced 2025-08-31 06:35:14 +00:00

started photoviewer redesign

This commit is contained in:
John Preston
2015-04-11 11:04:10 +01:00
parent 8bc0410830
commit 782c254ea0
30 changed files with 1233 additions and 1108 deletions

View File

@@ -802,6 +802,10 @@ public:
virtual void updateFrom(const MTPMessageMedia &media) {
}
virtual bool isImageLink() const {
return false;
}
virtual bool updateStickerEmoji() {
return false;
}
@@ -1167,6 +1171,10 @@ public:
void getState(TextLinkPtr &lnk, bool &inText, int32 x, int32 y, const HistoryItem *parent, int32 width = -1) const;
HistoryMedia *clone() const;
bool isImageLink() const {
return true;
}
private:
ImageLinkData *data;
TextLinkPtr link;