Added applying of profile colors to peers.

This commit is contained in:
23rd
2025-10-23 12:45:25 +03:00
parent 2ba3035a13
commit 71fec23311
@@ -792,6 +792,9 @@ not_null<UserData*> Session::processUser(const MTPUser &data) {
_peerDecorationsUpdated.fire_copy(result);
}
}
if (result->changeColorProfile(data.vprofile_color())) {
flags |= UpdateFlag::ColorProfile;
}
});
if (minimal) {
@@ -1106,6 +1109,9 @@ not_null<PeerData*> Session::processChat(const MTPChat &data) {
_peerDecorationsUpdated.fire_copy(result);
}
}
if (result->changeColorProfile(data.vprofile_color())) {
flags |= UpdateFlag::ColorProfile;
}
}, [&](const MTPDchannelForbidden &data) {
const auto channel = result->asChannel();