From 23fb44a36b4685cc2f6fb9d2a2c32a2c1f8a6b53 Mon Sep 17 00:00:00 2001 From: AlexeyZavar Date: Sat, 10 Aug 2024 08:23:21 +0300 Subject: [PATCH] fix: respect `statsDc` Co-authored-by: tehcneko --- Telegram/SourceFiles/ayu/utils/telegram_helpers.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/Telegram/SourceFiles/ayu/utils/telegram_helpers.cpp b/Telegram/SourceFiles/ayu/utils/telegram_helpers.cpp index 5567ab8d2..7ed2b0625 100644 --- a/Telegram/SourceFiles/ayu/utils/telegram_helpers.cpp +++ b/Telegram/SourceFiles/ayu/utils/telegram_helpers.cpp @@ -518,6 +518,10 @@ QString getMediaDC(not_null message) { } QString getPeerDC(not_null peer) { + if (const auto statsDcId = peer->owner().statsDcId(peer)) { + return getDCName(statsDcId); + } + if (peer->hasUserpic()) { const auto dc = v::match( peer->userpicLocation().file().data,