Implement disabling/enabling sharing.

This commit is contained in:
John Preston
2026-02-17 00:08:21 +04:00
parent f60dfaf14a
commit a9e35afbd7
33 changed files with 635 additions and 40 deletions
-11
View File
@@ -2692,17 +2692,6 @@ void Updates::feedUpdate(const MTPUpdate &update) {
_session->diceStickersPacks().apply(data);
} break;
case mtpc_updatePeerHistoryNoForwards: {
const auto &d = update.c_updatePeerHistoryNoForwards();
const auto peerId = peerFromMTP(d.vpeer());
if (const auto peer = session().data().peerLoaded(peerId)) {
if (const auto user = peer->asUser()) {
user->setNoForwardsFlags(
d.is_my_enabled(),
d.is_peer_enabled());
}
}
} break;
}
}