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:
parent
b63a10f846
commit
2ac1bc1a37
1 changed files with 3 additions and 3 deletions
|
|
@ -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();
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue