2
0
mirror of https://github.com/kotatogram/kotatogram-desktop synced 2025-09-01 15:15:13 +00:00

Parse and apply cloud filters.

This commit is contained in:
John Preston
2020-02-07 20:07:21 +04:00
parent ed715fb810
commit 11d31ffc84
13 changed files with 420 additions and 90 deletions

View File

@@ -22,6 +22,7 @@ https://github.com/telegramdesktop/tdesktop/blob/master/LEGAL
#include "data/data_channel.h"
#include "data/data_chat.h"
#include "data/data_user.h"
#include "data/data_chat_filters.h"
#include "data/data_scheduled_messages.h"
#include "data/data_file_origin.h"
#include "data/data_histories.h"
@@ -4051,6 +4052,12 @@ void MainWidget::feedUpdate(const MTPUpdate &update) {
ptsUpdateAndApply(data.vpts().v, data.vpts_count().v, update);
} break;
case mtpc_updateDialogFilter:
case mtpc_updateDialogFilterOrder:
case mtpc_updateDialogFilters: {
session().data().chatsFilters().apply(update);
} break;
// Deleted messages.
case mtpc_updateDeleteMessages: {
auto &d = update.c_updateDeleteMessages();