fix: respect statsDc

Co-authored-by: tehcneko <chsqwyx@gmail.com>
This commit is contained in:
AlexeyZavar 2024-08-10 08:23:21 +03:00
parent ba979c29dc
commit 23fb44a36b

View file

@ -518,6 +518,10 @@ QString getMediaDC(not_null<HistoryItem*> message) {
}
QString getPeerDC(not_null<PeerData*> peer) {
if (const auto statsDcId = peer->owner().statsDcId(peer)) {
return getDCName(statsDcId);
}
if (peer->hasUserpic()) {
const auto dc = v::match(
peer->userpicLocation().file().data,