Add matrix service to $matrix and move room handling to that

This commit is contained in:
N-Pex 2020-11-09 15:08:36 +01:00
parent 2ca7dd3655
commit c88931e00c
7 changed files with 239 additions and 213 deletions

View file

@ -7,11 +7,11 @@ Vue.use(Vuex)
export default new Vuex.Store({
state: {
currentRoom: null
currentRoomId: null
},
mutations: {
setCurrentRoom(state, room) {
state.currentRoom = room;
setCurrentRoomId(state, roomId) {
state.currentRoomId = roomId;
},
},
actions: {