We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3b079aa commit d02a8cbCopy full SHA for d02a8cb
Telegram/SourceFiles/data/data_peer.cpp
@@ -952,6 +952,13 @@ void PeerData::setBarSettings(PeerBarSettings which) {
952
history->refreshHiddenLinksItems();
953
});
954
}
955
+ if (const auto from = migrateFrom()) {
956
+ if (const auto history = owner().historyLoaded(from)) {
957
+ crl::on_main(&history->session(), [=] {
958
+ history->refreshHiddenLinksItems();
959
+ });
960
+ }
961
962
963
964
@@ -980,6 +987,9 @@ bool PeerData::hideLinks() const {
980
987
//if (!isUser()) {
981
988
// return false;
982
989
//}
990
+ if (const auto to = migrateTo()) {
991
+ return to->hideLinks();
992
983
993
const auto settings = barSettings();
984
994
return !settings || (*settings & PeerBarSetting::ReportSpam);
985
995
0 commit comments