Fixed hide/alt username

This commit is contained in:
Travis Shivers 2020-05-22 20:39:26 -05:00
parent 1de5dd2f72
commit 4fb821da64
1 changed files with 5 additions and 5 deletions

View File

@ -1,8 +1,7 @@
import Vue from 'vue'; import Vue from 'vue';
import axios from 'axios';
import moment from 'moment';
const EventEmitter = require('events'); const EventEmitter = require('events');
const moment = require('moment');
const axios = require('axios');
function sendNotification(message) { function sendNotification(message) {
return window.EventBus.$emit('notification', message); return window.EventBus.$emit('notification', message);
@ -154,8 +153,9 @@ export default {
data.password = data.password || ''; data.password = data.password || '';
commit('SET_PASSWORD', data.password); commit('SET_PASSWORD', data.password);
let username = data.user.username; let username = data.user.username;
if (JSON.parse(rootState.settings.HIDEUSERNAME)) {
username = rootState.settings.ALTUSERNAME; if (rootGetters['settings/GET_HIDEUSERNAME']) {
username = rootGetters['settings/GET_ALTUSERNAME']
} }
state._socket.emit( state._socket.emit(
'join', 'join',