2
0
mirror of https://github.com/kotatogram/kotatogram-desktop synced 2025-08-31 06:35:14 +00:00

Update API scheme on layer 166.

This commit is contained in:
John Preston
2023-10-18 11:29:42 +04:00
parent 12fab565a4
commit 16d18b437d
7 changed files with 149 additions and 86 deletions

View File

@@ -168,6 +168,7 @@ public:
return _colorIndex;
}
bool changeColorIndex(uint8 index);
bool clearColorIndex();
[[nodiscard]] bool isUser() const {
return peerIsUser(id);
@@ -358,6 +359,7 @@ public:
void saveTranslationDisabled(bool disabled);
void setSettings(const MTPPeerSettings &data);
bool changeColorIndex(const tl::conditional<MTPint> &cloudColorIndex);
enum class BlockStatus : char {
Unknown,
@@ -464,7 +466,8 @@ private:
BlockStatus _blockStatus = BlockStatus::Unknown;
LoadedStatus _loadedStatus = LoadedStatus::Not;
TranslationFlag _translationFlag = TranslationFlag::Unknown;
uint8 _colorIndex : 7 = 0;
uint8 _colorIndex : 6 = 0;
uint8 _colorIndexCloud : 1 = 0;
uint8 _userpicHasVideo : 1 = 0;
QString _about;