mirror of
https://github.com/telegramdesktop/tdesktop
synced 2025-08-31 14:38:15 +00:00
Support server-side colors by index, up to three.
This commit is contained in:
@@ -889,7 +889,7 @@ bool PeerData::changeColorIndex(uint8 index) {
|
||||
if (_colorIndexCloud && _colorIndex == index) {
|
||||
return false;
|
||||
}
|
||||
_colorIndexCloud = true;
|
||||
_colorIndexCloud = 1;
|
||||
_colorIndex = index;
|
||||
return true;
|
||||
}
|
||||
@@ -898,7 +898,7 @@ bool PeerData::clearColorIndex() {
|
||||
if (!_colorIndexCloud) {
|
||||
return false;
|
||||
}
|
||||
_colorIndexCloud = false;
|
||||
_colorIndexCloud = 0;
|
||||
_colorIndex = Data::DecideColorIndex(id);
|
||||
return true;
|
||||
}
|
||||
|
Reference in New Issue
Block a user