Fix badges not showing up for logged in user

I can't 100% confirm since I don't have third-party badges (brokee) but
it should work!
This commit is contained in:
Tommy Chow 2022-07-28 22:35:29 -04:00
parent b63a10f846
commit 2ac1bc1a37

View file

@ -243,7 +243,9 @@ abstract class ChatStoreBase with Store {
continue;
case Command.userState:
_userState = _userState.fromIRCMessage(parsedIRCMessage);
if (toSend != null) {
textController.clear();
_messageBuffer.add(toSend!);
toSend = null;
}
@ -395,12 +397,10 @@ abstract class ChatStoreBase with Store {
final userChatMessage = IRCMessage.fromString(userStateString);
userChatMessage.localEmotes?.addAll(assetsStore.userEmoteToObject);
if (auth.isLoggedIn && auth.user.details != null) userChatMessage.tags['user-id'] = auth.user.details!.id;
toSend = userChatMessage;
}
// Clear the previous input in the TextField.
textController.clear();
}
}