fix missing emotes on channels that don't have 7tv enabled (#426)
* fix wrong type * fix missing emotes caused by wrong `catchError` handler
This commit is contained in:
parent
f711004165
commit
f799e5f858
2 changed files with 20 additions and 19 deletions
|
|
@ -3,6 +3,7 @@ import 'dart:convert';
|
|||
|
||||
import 'package:flutter/material.dart';
|
||||
import 'package:frosty/apis/twitch_api.dart';
|
||||
import 'package:frosty/models/badges.dart';
|
||||
import 'package:frosty/models/emotes.dart';
|
||||
import 'package:frosty/models/events.dart';
|
||||
import 'package:frosty/models/irc.dart';
|
||||
|
|
@ -435,7 +436,7 @@ abstract class ChatStoreBase with Store {
|
|||
},
|
||||
onBadgeError: (error) {
|
||||
debugPrint(error.toString());
|
||||
return <Badge>[];
|
||||
return <ChatBadge>[];
|
||||
},
|
||||
showTwitchEmotes: settings.showTwitchEmotes,
|
||||
showTwitchBadges: settings.showTwitchBadges,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue