2
0
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:
John Preston
2023-10-26 23:40:53 +04:00
parent cc8408d11c
commit 5d335341ab
21 changed files with 391 additions and 167 deletions

View File

@@ -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;
}