Skip to content

Commit 74748a0

Browse files
sm-sayedignprice
authored andcommitted
api: Mark as non-final the ZulipStream fields that can change
These are the fields that gets updated via `ChannelUpdateEvent` in the next commit.
1 parent 67f8429 commit 74748a0

File tree

1 file changed

+11
-11
lines changed

1 file changed

+11
-11
lines changed

lib/api/model/model.dart

+11-11
Original file line numberDiff line numberDiff line change
@@ -313,28 +313,28 @@ enum UserRole{
313313
@JsonSerializable(fieldRename: FieldRename.snake)
314314
class ZulipStream {
315315
final int streamId;
316-
final String name;
317-
final String description;
318-
final String renderedDescription;
316+
String name;
317+
String description;
318+
String renderedDescription;
319319

320320
final int dateCreated;
321-
final int? firstMessageId;
321+
int? firstMessageId;
322322

323-
final bool inviteOnly;
324-
final bool isWebPublic; // present since 2.1, according to /api/changelog
325-
final bool historyPublicToSubscribers;
326-
final int? messageRetentionDays;
323+
bool inviteOnly;
324+
bool isWebPublic; // present since 2.1, according to /api/changelog
325+
bool historyPublicToSubscribers;
326+
int? messageRetentionDays;
327327
@JsonKey(name: 'stream_post_policy')
328-
final ChannelPostPolicy channelPostPolicy;
328+
ChannelPostPolicy channelPostPolicy;
329329
// final bool isAnnouncementOnly; // deprecated for `channelPostPolicy`; ignore
330330

331331
// TODO(server-6): `canRemoveSubscribersGroupId` added in FL 142
332332
// TODO(server-8): in FL 197 renamed to `canRemoveSubscribersGroup`
333333
@JsonKey(readValue: _readCanRemoveSubscribersGroup)
334-
final int? canRemoveSubscribersGroup;
334+
int? canRemoveSubscribersGroup;
335335

336336
// TODO(server-8): added in FL 199, was previously only on [Subscription] objects
337-
final int? streamWeeklyTraffic;
337+
int? streamWeeklyTraffic;
338338

339339
static int? _readCanRemoveSubscribersGroup(Map<dynamic, dynamic> json, String key) {
340340
return (json[key] as int?)

0 commit comments

Comments
 (0)