@@ -141,22 +141,6 @@ abstract class ChatAssetsStoreBase with Store {
141
141
//
142
142
// Emotes
143
143
Future .wait ([
144
- twitchApi
145
- .getSharedChatSession (
146
- broadcasterId: channelId,
147
- headers: headers,
148
- )
149
- .then ((sharedChatSession) {
150
- if (sharedChatSession == null ) return ;
151
-
152
- for (final participant in sharedChatSession.participants) {
153
- twitchApi
154
- .getUser (id: participant.broadcasterId, headers: headers)
155
- .then ((user) {
156
- channelIdToUserTwitch[participant.broadcasterId] = user;
157
- });
158
- }
159
- }).catchError (onBadgeError),
160
144
Future .wait ([
161
145
if (showTwitchEmotes) ...[
162
146
twitchApi
@@ -180,7 +164,7 @@ abstract class ChatAssetsStoreBase with Store {
180
164
final (setId, emotes) = data;
181
165
sevenTvEmoteSetId = setId;
182
166
return emotes;
183
- }).catchError (onBadgeError ),
167
+ }).catchError (onEmoteError ),
184
168
],
185
169
if (showBTTVEmotes) ...[
186
170
bttvApi.getEmotesGlobal ().catchError (onEmoteError),
@@ -200,8 +184,24 @@ abstract class ChatAssetsStoreBase with Store {
200
184
for (final emote in emotes) emote.name: emote,
201
185
}.asObservable (),
202
186
),
203
- //Emotes
187
+ // Badges
204
188
Future .wait ([
189
+ twitchApi
190
+ .getSharedChatSession (
191
+ broadcasterId: channelId,
192
+ headers: headers,
193
+ )
194
+ .then ((sharedChatSession) {
195
+ if (sharedChatSession == null ) return ;
196
+
197
+ for (final participant in sharedChatSession.participants) {
198
+ twitchApi
199
+ .getUser (id: participant.broadcasterId, headers: headers)
200
+ .then ((user) {
201
+ channelIdToUserTwitch[participant.broadcasterId] = user;
202
+ });
203
+ }
204
+ }).catchError (onBadgeError),
205
205
// Get global badges first, then channel badges to avoid badge conflicts.
206
206
// We want the channel badges to override the global badges.
207
207
if (showTwitchBadges)
0 commit comments