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

improved scheme serializer, fixed channel photo delete button, bad media update when message was sent

This commit is contained in:
John Preston
2015-10-01 20:15:23 +03:00
parent 6321d22fc9
commit 425e2c2a81
7 changed files with 7540 additions and 6958 deletions

View File

@@ -877,7 +877,7 @@ public:
virtual bool serviceMsg() const {
return false;
}
virtual void updateMedia(const MTPMessageMedia &media) {
virtual void updateMedia(const MTPMessageMedia *media) {
}
virtual QString selectedText(uint32 selection) const {
@@ -1531,9 +1531,11 @@ public:
QString notificationHeader() const;
QString notificationText() const;
void updateMedia(const MTPMessageMedia &media) {
if (_media) {
_media->updateFrom(media);
void updateMedia(const MTPMessageMedia *media) {
if (media && _media && _media->type() != MediaTypeWebPage) {
_media->updateFrom(*media);
} else {
setMedia(media);
}
}