remove shoutbox test hacks

This commit is contained in:
Shpuld Shpuldson 2021-03-03 16:47:59 +02:00
parent 0673511fc2
commit becacf0643
2 changed files with 1 additions and 19 deletions

View file

@ -50,7 +50,7 @@
<media-modal />
</div>
<chat-panel
v-if="currentUser"
v-if="currentUser && chat"
:floating="true"
class="floating-chat mobile-hidden"
/>

View file

@ -18,24 +18,6 @@ const chat = {
actions: {
initializeChat (store, socket) {
const channel = socket.channel('chat:public')
let id = 0
const createmsg = () => {
id += 1
return {
text: 'test' + id,
author: {
username: 'test',
avatar: '',
id
}
}
}
const loop = () => {
store.commit('addMessage', createmsg())
setTimeout(loop, 3000)
}
loop()
channel.on('new_msg', (msg) => {
store.commit('addMessage', msg)