Signed-off-by: Marco Ambrosini <marcoambrosini@pm.me>
This commit is contained in:
Marco Ambrosini 2019-11-19 16:29:21 +01:00
Родитель 50030fa19c
Коммит 597565f88d
1 изменённых файлов: 3 добавлений и 3 удалений

Просмотреть файл

@ -88,14 +88,14 @@ const mutations = {
}
},
/**
* Resets the store to it's original state
* Purges a given conversation from the previously added participants
* @param {object} state current store state;
* @param {string} token the conversation to purge;
*/
purgeParticipantsStore(state, token) {
if (state.participants[token]) {
Vue.delete(state.participants, token)
}
} else console.debug("The conversation you are trying to purge doesn't exist")
},
}
@ -154,7 +154,7 @@ const actions = {
commit('deleteParticipant', { token, index })
},
/**
* Resets the store to it's original state.
* Purges a given conversation from the previously added participants
* @param {object} context default store context;
* @param {string} token the conversation to purge;
*/