Add open streaming

This commit is contained in:
kPherox 2019-04-24 06:15:56 +09:00
parent e81cf581ef
commit 34a38e8d4d
No known key found for this signature in database
GPG Key ID: C04751C2BFA2F62D

View File

@ -52,6 +52,13 @@ export default class AddColumn extends Vue {
this.pubTL.push({ name: instance, statuses: [] }) this.pubTL.push({ name: instance, statuses: [] })
this.timeline() this.timeline()
ipcRenderer.send('open-streaming', instance, 'no-auth')
ipcRenderer.on(`update-${instance}-no-auth`, (_: Event, status: Status) => {
this.pubTL.filter(tl => tl.name === instance).forEach(function (tl) {
tl.statuses.unshift(status)
})
})
} }
public timeline() { public timeline() {
@ -60,7 +67,7 @@ export default class AddColumn extends Vue {
tl.statuses = statuses tl.statuses = statuses
}) })
ipcRenderer.send('no-auth-timeline', tl.name) ipcRenderer.send('no-auth-timeline', tl.name)
}); })
} }
} }
</script>= </script>=