Skip to content

Commit 8354995

Browse files
committed
api: Mark User.isBillingAdmin as required, relying on server 5+, FL 73+
See "Feature level 73" from Zulip API changelog: https://zulip.com/api/changelog Signed-off-by: Zixuan James Li <[email protected]>
1 parent 701763d commit 8354995

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

lib/api/model/model.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -205,7 +205,7 @@ class User {
205205
// bool isOwner; // obsoleted by [role]; ignore
206206
// bool isAdmin; // obsoleted by [role]; ignore
207207
// bool isGuest; // obsoleted by [role]; ignore
208-
bool? isBillingAdmin; // TODO(server-5)
208+
bool isBillingAdmin;
209209
final bool isBot;
210210
final int? botType; // TODO enum
211211
int? botOwnerId;

lib/api/model/model.g.dart

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

test/api/model/model_checks.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ extension UserChecks on Subject<User> {
99
Subject<String> get fullName => has((x) => x.fullName, 'fullName');
1010
Subject<String> get dateJoined => has((x) => x.dateJoined, 'dateJoined');
1111
Subject<bool> get isActive => has((x) => x.isActive, 'isActive');
12-
Subject<bool?> get isBillingAdmin => has((x) => x.isBillingAdmin, 'isBillingAdmin');
12+
Subject<bool> get isBillingAdmin => has((x) => x.isBillingAdmin, 'isBillingAdmin');
1313
Subject<bool> get isBot => has((x) => x.isBot, 'isBot');
1414
Subject<int?> get botType => has((x) => x.botType, 'botType');
1515
Subject<int?> get botOwnerId => has((x) => x.botOwnerId, 'botOwnerId');

0 commit comments

Comments
 (0)