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

Request possible peer colors from API.

This commit is contained in:
John Preston
2023-11-23 12:46:55 +04:00
parent 5652abfd49
commit b5b5c28ac5
10 changed files with 192 additions and 144 deletions

View File

@@ -8,6 +8,7 @@ https://github.com/telegramdesktop/tdesktop/blob/master/LEGAL
#include "main/main_session.h"
#include "apiwrap.h"
#include "api/api_peer_colors.h"
#include "api/api_updates.h"
#include "api/api_send_progress.h"
#include "api/api_user_privacy.h"
@@ -476,9 +477,9 @@ Window::SessionController *Session::tryResolveWindow() const {
return _windows.front();
}
auto Session::colorIndicesValue() const
auto Session::colorIndicesValue()
-> rpl::producer<Ui::ColorIndicesCompressed> {
return _account->appConfig().colorIndicesValue();
return api().peerColors().indicesValue();
}
} // namespace Main