Expose room id in navigation

So rooms can be bookmarked, issue #26.
This commit is contained in:
N-Pex 2021-01-12 11:26:01 +01:00
parent 50ae081ea8
commit 6608f0c8ce
7 changed files with 24 additions and 12 deletions

View file

@ -106,7 +106,7 @@ export default {
.then(() => {
console.log("Left room");
this.$matrix.matrixClient.store.removeRoom(roomId);
this.$matrix.setCurrentRoomId(null);
this.$navigation.push({name:'Chat'}, -1);
})
.catch(err => {
console.log("Error leaving", err);