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.
This commit is contained in:
parent
84cee1cede
commit
898a1c2d00
2 changed files with 0 additions and 3 deletions
|
|
@ -233,7 +233,6 @@ class Emote7TV {
|
|||
final List<String> visibilitySimple;
|
||||
final String mime;
|
||||
final int status;
|
||||
final List<String> tags;
|
||||
final List<int> width;
|
||||
final List<int> height;
|
||||
final List<List<String>> urls;
|
||||
|
|
@ -246,7 +245,6 @@ class Emote7TV {
|
|||
this.visibilitySimple,
|
||||
this.mime,
|
||||
this.status,
|
||||
this.tags,
|
||||
this.width,
|
||||
this.height,
|
||||
this.urls,
|
||||
|
|
|
|||
|
|
@ -116,7 +116,6 @@ Emote7TV _$Emote7TVFromJson(Map<String, dynamic> json) => Emote7TV(
|
|||
.toList(),
|
||||
json['mime'] as String,
|
||||
json['status'] as int,
|
||||
(json['tags'] as List<dynamic>).map((e) => e as String).toList(),
|
||||
(json['width'] as List<dynamic>).map((e) => e as int).toList(),
|
||||
(json['height'] as List<dynamic>).map((e) => e as int).toList(),
|
||||
(json['urls'] as List<dynamic>)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue