mirror of
https://github.com/AyuGram/AyuGramDesktop.git
synced 2026-08-02 02:07:54 +00:00
Added applying of profile colors to peers.
This commit is contained in:
@@ -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();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user