@@ -71,7 +71,6 @@ sealed class Event {
7171          case  'peer_remove' :  return  SubscriptionPeerRemoveEvent .fromJson (json);
7272          default :  return  UnexpectedEvent .fromJson (json);
7373        }
74-       // case 'muted_topics': … // TODO(#422) we ignore this feature on older servers 
7574      case  'user_status' :  return  UserStatusEvent .fromJson (json);
7675      case  'user_topic' :  return  UserTopicEvent .fromJson (json);
7776      case  'muted_users' :  return  MutedUsersEvent .fromJson (json);
@@ -763,6 +762,7 @@ class SubscriptionUpdateEvent extends SubscriptionEvent {
763762
764763  final  int  streamId;
765764
765+   @JsonKey (unknownEnumValue:  SubscriptionProperty .unknown)
766766  final  SubscriptionProperty  property;
767767
768768  /// The new value, or null if we don't recognize the setting. 
@@ -783,7 +783,6 @@ class SubscriptionUpdateEvent extends SubscriptionEvent {
783783        assert (RegExp (r'^#[0-9a-f]{6}$' ).hasMatch (str));
784784        return  0xff000000  |  int .parse (str.substring (1 ), radix:  16 );
785785      case  SubscriptionProperty .isMuted: 
786-       case  SubscriptionProperty .inHomeView: 
787786      case  SubscriptionProperty .pinToTop: 
788787      case  SubscriptionProperty .desktopNotifications: 
789788      case  SubscriptionProperty .audibleNotifications: 
@@ -820,13 +819,18 @@ enum SubscriptionProperty {
820819
821820
822821  isMuted,
823-   inHomeView,
824822  pinToTop,
825823  desktopNotifications,
826824  audibleNotifications,
827825  pushNotifications,
828826  emailNotifications,
829827  wildcardMentionsNotify,
828+ 
829+   /// A new, unrecognized property, or a deprecated one we don't use. 
830+   /// 
831+   /// Could be `in_home_view` , deprecated in FL 139 (Server 6) but still sent 
832+   /// as of CZO on 2025-10-03. 
833+ // TODO(server-future) Remove `in_home_view` comment once it stops being sent. 
830834  unknown;
831835
832836  static  SubscriptionProperty  fromRawString (String  raw) =>  _byRawString[raw] ??  unknown;
0 commit comments