remove shoutbox test hacks
This commit is contained in:
parent
0673511fc2
commit
becacf0643
2 changed files with 1 additions and 19 deletions
|
@ -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…
Reference in a new issue