Remove duplicate action

This commit is contained in:
kPherox 2019-04-24 17:37:46 +09:00
parent a0e5b2777d
commit 0dde80f267
No known key found for this signature in database
GPG Key ID: C04751C2BFA2F62D

View File

@ -65,9 +65,7 @@ export default class AddColumn extends Vue {
this.loadTL(timeline) this.loadTL(timeline)
let updateListener = (_: Event, status: Status) => { let updateListener = (_: Event, status: Status) => {
this.pubTL.filter(tl => tl.name === timeline.name).forEach(function (tl) { timeline.statuses.set(status.id, status)
tl.statuses.set(status.id, status)
})
this.$forceUpdate() this.$forceUpdate()
} }
ipcRenderer.on(`update-${timeline.name}-no-auth`, updateListener) ipcRenderer.on(`update-${timeline.name}-no-auth`, updateListener)