Rename legacy PleromaFE Chat functionality to "Shout"

This commit is contained in:
Mark Felder 2020-08-03 18:44:35 -05:00 committed by Mark Felder
parent 7bd18cda64
commit 0604b1d5b7
15 changed files with 52 additions and 53 deletions

View file

@ -255,12 +255,12 @@ const api = {
initializeSocket ({ dispatch, commit, state, rootState }) {
// Set up websocket connection
const token = state.wsToken
if (rootState.instance.chatAvailable && typeof token !== 'undefined' && state.socket === null) {
if (rootState.instance.shoutAvailable && typeof token !== 'undefined' && state.socket === null) {
const socket = new Socket('/socket', { params: { token } })
socket.connect()
commit('setSocket', socket)
dispatch('initializeChat', socket)
dispatch('initializeShout', socket)
}
},
disconnectFromSocket ({ commit, state }) {