mirror of
https://github.com/AyuGram/AyuGramDesktop.git
synced 2026-08-02 18:21:53 +00:00
@@ -952,6 +952,13 @@ void PeerData::setBarSettings(PeerBarSettings which) {
|
||||
history->refreshHiddenLinksItems();
|
||||
});
|
||||
}
|
||||
if (const auto from = migrateFrom()) {
|
||||
if (const auto history = owner().historyLoaded(from)) {
|
||||
crl::on_main(&history->session(), [=] {
|
||||
history->refreshHiddenLinksItems();
|
||||
});
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -980,6 +987,9 @@ bool PeerData::hideLinks() const {
|
||||
//if (!isUser()) {
|
||||
// return false;
|
||||
//}
|
||||
if (const auto to = migrateTo()) {
|
||||
return to->hideLinks();
|
||||
}
|
||||
const auto settings = barSettings();
|
||||
return !settings || (*settings & PeerBarSetting::ReportSpam);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user