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

Move background to global settings.

This commit is contained in:
John Preston
2020-06-19 19:14:55 +04:00
parent 5433c16244
commit 2635ca33f8
16 changed files with 359 additions and 264 deletions

View File

@@ -506,7 +506,7 @@ void BackgroundPreviewBox::apply() {
_controller->content()->setChatBackground(_paper, std::move(_full));
if (install) {
_controller->session().api().request(MTPaccount_InstallWallPaper(
_paper.mtpInput(),
_paper.mtpInput(&_controller->session()),
_paper.mtpSettings()
)).send();
}