Skip to content

Commit 80a8298

Browse files
committed
api: Add isActive to RealmUserUpdateEvent
This will become handy in the next commit(s) where we want to change the UI based on `User.isActive` when having a DM conversation.
1 parent 157c685 commit 80a8298

File tree

2 files changed

+5
-0
lines changed

2 files changed

+5
-0
lines changed

lib/api/model/events.dart

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -285,6 +285,7 @@ class RealmUserUpdateEvent extends RealmUserEvent {
285285

286286
@JsonKey(readValue: _readFromPerson) final RealmUserUpdateCustomProfileField? customProfileField;
287287
@JsonKey(readValue: _readFromPerson) final String? newEmail;
288+
@JsonKey(readValue: _readFromPerson) final bool? isActive;
288289

289290
static Object? _readFromPerson(Map<dynamic, dynamic> json, String key) {
290291
return (json['person'] as Map<String, dynamic>)[key];
@@ -318,6 +319,7 @@ class RealmUserUpdateEvent extends RealmUserEvent {
318319
this.deliveryEmail,
319320
this.customProfileField,
320321
this.newEmail,
322+
this.isActive,
321323
});
322324

323325
factory RealmUserUpdateEvent.fromJson(Map<String, dynamic> json) =>

lib/api/model/events.g.dart

Lines changed: 3 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)