2
0
mirror of https://github.com/telegramdesktop/tdesktop synced 2025-08-31 06:26:18 +00:00

Fix pending web pages applying.

Fixes #7091.
This commit is contained in:
John Preston
2020-06-05 13:03:45 +04:00
parent d0994019ca
commit a586b18dfb
3 changed files with 62 additions and 54 deletions

View File

@@ -10,6 +10,12 @@ https://github.com/telegramdesktop/tdesktop/blob/master/LEGAL
#include "data/data_photo.h"
#include "data/data_document.h"
class ChannelData;
namespace Main {
class Session;
} // namespace Main
enum class WebPageType {
Photo,
Video,
@@ -50,6 +56,11 @@ struct WebPageData {
const QString &newAuthor,
int newPendingTill);
static void ApplyChanges(
not_null<Main::Session*> session,
ChannelData *channel,
const MTPmessages_Messages &result);
WebPageId id = 0;
WebPageType type = WebPageType::Article;
QString url;