From d4ae5ebccf9f35a2bcd4bc6116b227ccb4baddc4 Mon Sep 17 00:00:00 2001 From: Henry-Hiles Date: Thu, 22 Oct 2026 21:32:19 -0400 Subject: [PATCH] drop unstable timezone key support --- lib/models/profile_response.dart | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/lib/models/profile_response.dart b/lib/models/profile_response.dart index 7949f0d..aa1b9f8 100644 --- a/lib/models/profile_response.dart +++ b/lib/models/profile_response.dart @@ -39,8 +39,7 @@ class const Profile({ ) final String? displayName, - @JsonKey(readValue: Profile.readTimezone, name: Profile.timezoneKey) - final String? timezone, + @JsonKey(name: Profile.timezoneKey) final String? timezone, @JsonKey(readValue: Profile.readPronouns, name: Profile.pronounsKey) final IList pronouns = const .empty(), @@ -48,7 +47,6 @@ class const Profile({ static const avatarUrlKey = "avatar_url"; static const displayNameKey = "displayname"; static const timezoneKey = "m.tz"; - static const unstableTimezoneKey = "us.cloke.msc4175.tz"; static const pronounsKey = "m.pronouns"; static const unstablePronounsKey = "io.fsky.nyx.pronouns"; @@ -69,9 +67,6 @@ class const Profile({ /* until stable, commented out: map[key] ?? */ map[Profile .unstablePronounsKey]; - static Object? readTimezone(Map map, String key) => - map[key] ?? map[Profile.unstableTimezoneKey]; - factory Profile.fromJson(Map json) => _$ProfileFromJson(json);