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

Support groups in privacy settings.

This commit is contained in:
John Preston
2019-05-20 20:40:53 +02:00
parent 3556fbf702
commit 6b80ff4bcc
8 changed files with 125 additions and 85 deletions

View File

@@ -131,9 +131,12 @@ public:
}
int membersCount() const {
return _membersCount;
return std::max(_membersCount, 1);
}
void setMembersCount(int newMembersCount);
bool membersCountKnown() const {
return (_membersCount >= 0);
}
int adminsCount() const {
return _adminsCount;
@@ -364,7 +367,7 @@ private:
PtsWaiter _ptsWaiter;
int _membersCount = 1;
int _membersCount = -1;
int _adminsCount = 1;
int _restrictedCount = 0;
int _kickedCount = 0;