From 898a1c2d006362f9d6bf3ab3a345c3c7fd24ee8e Mon Sep 17 00:00:00 2001 From: Tommy Chow Date: Fri, 29 Jul 2022 11:58:35 -0400 Subject: [PATCH] Fix 7TV emotes not showing in chat There was a recent change in the 7TV api that resulted in the `tags` field returning null. The serializer currently doesn't handle `null` cases so it was causing a deserialize error. A simple fix is to make the field nullable, but I've decided to remove it completely since it's not used anywhere in the app. --- lib/models/emotes.dart | 2 -- lib/models/emotes.g.dart | 1 - 2 files changed, 3 deletions(-) diff --git a/lib/models/emotes.dart b/lib/models/emotes.dart index 027eb6cc..db218c43 100644 --- a/lib/models/emotes.dart +++ b/lib/models/emotes.dart @@ -233,7 +233,6 @@ class Emote7TV { final List visibilitySimple; final String mime; final int status; - final List tags; final List width; final List height; final List> urls; @@ -246,7 +245,6 @@ class Emote7TV { this.visibilitySimple, this.mime, this.status, - this.tags, this.width, this.height, this.urls, diff --git a/lib/models/emotes.g.dart b/lib/models/emotes.g.dart index f2f330dc..bc8df1c0 100644 --- a/lib/models/emotes.g.dart +++ b/lib/models/emotes.g.dart @@ -116,7 +116,6 @@ Emote7TV _$Emote7TVFromJson(Map json) => Emote7TV( .toList(), json['mime'] as String, json['status'] as int, - (json['tags'] as List).map((e) => e as String).toList(), (json['width'] as List).map((e) => e as int).toList(), (json['height'] as List).map((e) => e as int).toList(), (json['urls'] as List)