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

Encapsulated DcOptions to an independent class.

This commit is contained in:
John Preston
2017-02-23 09:57:04 +03:00
parent 90b3b5c3e5
commit a35947141c
24 changed files with 606 additions and 329 deletions

View File

@@ -60,6 +60,7 @@ Copyright (c) 2014-2017 John Preston, https://desktop.telegram.org
#include "window/themes/window_theme.h"
#include "window/player_wrap_widget.h"
#include "styles/style_boxes.h"
#include "mtproto/dc_options.h"
StackItemSection::StackItemSection(std::unique_ptr<Window::SectionMemento> &&memento) : StackItem(nullptr)
, _memento(std::move(memento)) {
@@ -4907,7 +4908,7 @@ void MainWidget::feedUpdate(const MTPUpdate &update) {
case mtpc_updateDcOptions: {
auto &d = update.c_updateDcOptions();
MTP::updateDcOptions(d.vdc_options.c_vector().v);
AppClass::Instance().dcOptions()->addFromList(d.vdc_options);
} break;
case mtpc_updateUserPhone: {