Implement private chat noforward following.

This commit is contained in:
John Preston
2026-02-06 14:18:30 +04:00
parent 5c7d2723ed
commit 4e9c0ea3a5
12 changed files with 120 additions and 36 deletions
+12
View File
@@ -2685,6 +2685,18 @@ void Updates::feedUpdate(const MTPUpdate &update) {
const auto &data = update.c_updateEmojiGameInfo();
_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;
}
}