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
},
isChats() {

View file

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

View file

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