fix socket

This commit is contained in:
Henry Jameson 2026-03-15 19:26:36 +02:00
commit f31a9a42da
3 changed files with 4 additions and 4 deletions

View file

@ -156,7 +156,7 @@ export default {
} }
} }
}, },
shout() { shoutJoined() {
return useShoutStore().joined return useShoutStore().joined
}, },
isChats() { isChats() {

View file

@ -60,8 +60,8 @@
/> />
</div> </div>
<MediaModal /> <MediaModal />
<shout-panel <ShoutPanel
v-if="currentUser && shout && !hideShoutbox" v-if="currentUser && !hideShoutbox && shoutJoined"
:floating="true" :floating="true"
class="floating-shout mobile-hidden" class="floating-shout mobile-hidden"
:class="{ '-left': shoutboxPosition }" :class="{ '-left': shoutboxPosition }"

View file

@ -345,7 +345,7 @@ const api = {
// Set up websocket connection // Set up websocket connection
const token = state.wsToken const token = state.wsToken
if ( if (
useInstanceStore().shoutAvailable && useInstanceCapabilitiesStore().shoutAvailable &&
typeof token !== 'undefined' && typeof token !== 'undefined' &&
state.socket === null state.socket === null
) { ) {