2
0
mirror of https://github.com/kotatogram/kotatogram-desktop synced 2025-08-30 22:25:12 +00:00

Allow creating approve-only invite links.

This commit is contained in:
John Preston
2021-10-12 12:39:07 +04:00
parent e471d61d7a
commit 3af3f85f82
20 changed files with 259 additions and 52 deletions

View File

@@ -177,6 +177,11 @@ public:
}
void setKickedCount(int newKickedCount);
[[nodiscard]] int pendingRequestsCount() const {
return _pendingRequestsCount;
}
void setPendingRequestsCount(int count);
[[nodiscard]] bool haveLeft() const {
return flags() & Flag::Left;
}
@@ -426,6 +431,7 @@ private:
int _adminsCount = 1;
int _restrictedCount = 0;
int _kickedCount = 0;
int _pendingRequestsCount = 0;
MsgId _availableMinId = 0;
RestrictionFlags _defaultRestrictions;