Fix FFZ emotes and badges no longer showing
Previously, emote and badge URLs from FFZ's API had the scheme omitted. A recent update to the API has added these schemes, so we no longer need to prepend it.
This commit is contained in:
parent
ca06c99da3
commit
10a596a247
3 changed files with 4 additions and 6 deletions
|
|
@ -174,8 +174,7 @@ class IRCMessage {
|
|||
badgeUrl = botBadge.url;
|
||||
skipBot = true;
|
||||
} else if (ffzRoomInfo?.modUrls != null) {
|
||||
badgeUrl =
|
||||
'https:${ffzRoomInfo!.modUrls?.url4x ?? ffzRoomInfo.modUrls?.url2x ?? ffzRoomInfo.modUrls!.url1x}';
|
||||
badgeUrl = ffzRoomInfo!.modUrls?.url4x ?? ffzRoomInfo.modUrls?.url2x ?? ffzRoomInfo.modUrls!.url1x;
|
||||
}
|
||||
|
||||
final newBadge = ChatBadge(
|
||||
|
|
@ -197,8 +196,7 @@ class IRCMessage {
|
|||
|
||||
// Add custom FFZ vip badge if it exists
|
||||
if (badgeInfo.name == 'VIP' && ffzRoomInfo?.vipBadge != null) {
|
||||
badgeUrl =
|
||||
'https:${ffzRoomInfo!.vipBadge?.url4x ?? ffzRoomInfo.vipBadge?.url2x ?? ffzRoomInfo.vipBadge!.url1x}';
|
||||
badgeUrl = ffzRoomInfo!.vipBadge?.url4x ?? ffzRoomInfo.vipBadge?.url2x ?? ffzRoomInfo.vipBadge!.url1x;
|
||||
}
|
||||
|
||||
final newBadge = ChatBadge(
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue