remove shoutbox test hacks

vue3compat-tabswitcher
Shpuld Shpuldson 4 years ago
parent 0673511fc2
commit becacf0643

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

@ -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)

Loading…
Cancel
Save