fix socket
This commit is contained in:
parent
d0fb8bcf85
commit
f31a9a42da
3 changed files with 4 additions and 4 deletions
|
|
@ -156,7 +156,7 @@ export default {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
shout() {
|
shoutJoined() {
|
||||||
return useShoutStore().joined
|
return useShoutStore().joined
|
||||||
},
|
},
|
||||||
isChats() {
|
isChats() {
|
||||||
|
|
|
||||||
|
|
@ -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 }"
|
||||||
|
|
|
||||||
|
|
@ -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
|
||||||
) {
|
) {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue