mirror of
https://github.com/AyuGram/AyuGramDesktop.git
synced 2026-07-25 15:04:57 +00:00
Implement private chat noforward following.
This commit is contained in:
@@ -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;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user