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:
Tommy Chow 2024-12-30 20:10:15 -05:00 • committed by GitHub
parent f711004165
commit f799e5f858
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 20 additions and 19 deletions

View file

@ -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,