onUserJoinBattle method
Implementation
void onUserJoinBattle(String battleId, TUIBattleUser battleUser) {
if (battleId != battleState.battleId.value) {
return;
}
final newBattleUsers = battleState.battleUsers.value.toList();
newBattleUsers.add(BattleUser.fromTUIBattleUser(battleUser));
battleState.battleUsers.value = newBattleUsers;
}