Skip to content

Commit a2a81ca

Browse files
authored
fix: sub only tts to new version (#1340)
* fix: sub only tts to new version * fix: formatting
1 parent 53df724 commit a2a81ca

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

lib/tts_isolate.dart

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -69,6 +69,11 @@ Future<void> isolateMain(
6969
if (ttsModel.isAlertsOnly) {
7070
return;
7171
}
72+
if (ttsModel.isSubscribersOnly &&
73+
(messageData['tags']['subscriber'] == null ||
74+
messageData['tags']['subscriber'] == '0')) {
75+
return;
76+
}
7277
final messageModel = TwitchMessageModel(
7378
messageId: message.id,
7479
author: TwitchUserModel(

0 commit comments

Comments
 (0)