From 5171996b3932cf3c36834aa4188583998a31fd32 Mon Sep 17 00:00:00 2001 From: Steffen Date: Tue, 30 Mar 2021 21:34:09 +0200 Subject: [PATCH] bugfixes and improved session joining --- CHANGELOG.md | 8 ++++++++ src/store/persistence.js | 2 +- src/store/socket.js | 1 + 3 files changed, 10 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index eff6e81..3f9893e 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,13 @@ # Release Notes +### Version 2.11.0 +- new design for character reference sheet +- automatically switch to grimoire view when joining a session through a link +- fixed demon bluffs showing on public town square +- fixed a bug that prevented connecting to a session when previously being connected and joining through a link + +--- + ### Version 2.10.0 - added [nomination log indicator](https://fontawesome.com/icons/book-dead). When a nomination log [v] is available, the number of currently visible entries is displayed. Clicking the indicator can reveal/hide the nomination log. - fix issue where a player and storyteller updating the same players pronouns at around the same time causes an infinite loop disconnecting the session. diff --git a/src/store/persistence.js b/src/store/persistence.js index 4ba71e1..55c2b78 100644 --- a/src/store/persistence.js +++ b/src/store/persistence.js @@ -60,7 +60,7 @@ module.exports = store => { if (localStorage.getItem("playerId")) { store.commit("session/setPlayerId", localStorage.getItem("playerId")); } - if (localStorage.getItem("session")) { + if (localStorage.getItem("session") && !window.location.hash.substr(1)) { const [spectator, sessionId] = JSON.parse(localStorage.getItem("session")); store.commit("session/setSpectator", spectator); store.commit("session/setSessionId", sessionId); diff --git a/src/store/socket.js b/src/store/socket.js index 1b898e8..e193a08 100644 --- a/src/store/socket.js +++ b/src/store/socket.js @@ -878,5 +878,6 @@ export default store => { if (sessionId) { store.commit("session/setSpectator", true); store.commit("session/setSessionId", sessionId); + store.commit("toggleGrimoire", false); } };