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

fixed bug in history size count, 0.9.5

This commit is contained in:
John Preston
2015-10-14 21:15:46 +02:00
parent 21570c0479
commit bf6bebb0aa
4 changed files with 9 additions and 11 deletions

View File

@@ -880,7 +880,7 @@ public:
virtual bool serviceMsg() const {
return false;
}
virtual void updateMedia(const MTPMessageMedia *media) {
virtual void updateMedia(const MTPMessageMedia *media, bool allowEmitResize) {
}
virtual QString selectedText(uint32 selection) const {
@@ -930,8 +930,6 @@ public:
virtual HistoryMedia *getMedia(bool inOverview = false) const {
return 0;
}
virtual void setMedia(const MTPMessageMedia *media) {
}
virtual void setText(const QString &text, const LinksInText &links) {
}
virtual void getTextWithLinks(QString &text, LinksInText &links) {
@@ -1541,11 +1539,11 @@ public:
QString notificationHeader() const;
QString notificationText() const;
void updateMedia(const MTPMessageMedia *media) {
void updateMedia(const MTPMessageMedia *media, bool allowEmitResize) {
if (media && _media && _media->type() != MediaTypeWebPage) {
_media->updateFrom(*media);
} else {
setMedia(media);
setMedia(media, allowEmitResize);
}
}
@@ -1553,7 +1551,7 @@ public:
LinksInText textLinks() const;
QString inDialogsText() const;
HistoryMedia *getMedia(bool inOverview = false) const;
void setMedia(const MTPMessageMedia *media);
void setMedia(const MTPMessageMedia *media, bool allowEmitResize);
void setText(const QString &text, const LinksInText &links);
void getTextWithLinks(QString &text, LinksInText &links);
bool textHasLinks();