mirror of
https://github.com/AyuGram/AyuGramDesktop.git
synced 2025-06-05 06:33:57 +02:00
fix: respect statsDc
Co-authored-by: tehcneko <chsqwyx@gmail.com>
This commit is contained in:
parent
ba979c29dc
commit
23fb44a36b
1 changed files with 4 additions and 0 deletions
|
@ -518,6 +518,10 @@ QString getMediaDC(not_null<HistoryItem*> message) {
|
||||||
}
|
}
|
||||||
|
|
||||||
QString getPeerDC(not_null<PeerData*> peer) {
|
QString getPeerDC(not_null<PeerData*> peer) {
|
||||||
|
if (const auto statsDcId = peer->owner().statsDcId(peer)) {
|
||||||
|
return getDCName(statsDcId);
|
||||||
|
}
|
||||||
|
|
||||||
if (peer->hasUserpic()) {
|
if (peer->hasUserpic()) {
|
||||||
const auto dc = v::match(
|
const auto dc = v::match(
|
||||||
peer->userpicLocation().file().data,
|
peer->userpicLocation().file().data,
|
||||||
|
|
Loading…
Add table
Reference in a new issue