Add support for 7TV emote update events (#305)

* Get 7TV emote set id

* Add initial support for 7TV emote set events in chat

* Add 7TV emote add/remove alerts in chat

* Add author to 7TV events
This commit is contained in:
Tommy Chow 2023-11-28 03:21:05 -05:00 • committed by GitHub
parent 466adea731
commit 8fab6bdbc9
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
19 changed files with 335 additions and 62 deletions

View file

@ -1,10 +1,10 @@
import 'package:collection/collection.dart';
import 'package:flutter/material.dart';
import 'package:flutter_mobx/flutter_mobx.dart';
import 'package:frosty/constants.dart';
import 'package:frosty/models/irc.dart';
import 'package:frosty/screens/channel/chat/stores/chat_store.dart';
import 'package:frosty/screens/channel/chat/widgets/chat_message.dart';
import 'package:frosty/utils.dart';
import 'package:frosty/widgets/section_header.dart';
class ReplyThread extends StatelessWidget {
@ -28,9 +28,7 @@ class ReplyThread extends StatelessWidget {
final replyUserLogin = selectedMessage.tags['reply-parent-user-login'];
final replyBody = selectedMessage.tags['reply-parent-msg-body'];
final replyName = regexEnglish.hasMatch(replyDisplayName!)
? replyDisplayName
: '$replyDisplayName ($replyUserLogin)';
final replyName = getReadableName(replyDisplayName!, replyUserLogin!);
return Observer(
builder: (context) {