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

Fixed Api requests for statistics with non-default DC.

This commit is contained in:
23rd
2023-11-11 14:58:44 +03:00
parent 468d4c5e4f
commit 1e6cf839e2
7 changed files with 41 additions and 61 deletions

View File

@@ -1120,6 +1120,10 @@ void ApplyChannelUpdate(
channel,
update.vnotify_settings());
if (update.vstats_dc()) {
channel->owner().applyStatsDcId(channel, update.vstats_dc()->v);
}
if (const auto sendAs = update.vdefault_send_as()) {
session->sendAsPeers().setChosen(channel, peerFromMTP(*sendAs));
} else {