Change sort timing to update event is received

This commit is contained in:
kPherox 2019-04-25 21:59:34 +09:00
parent a0ce20d829
commit 67afe14c02
No known key found for this signature in database
GPG Key ID: C04751C2BFA2F62D

View File

@ -16,7 +16,7 @@
{{value.name}} {{value.name}}
<!--とりあえずここに書かせて--> <!--とりあえずここに書かせて-->
<TimelineToot <TimelineToot
v-for="[id,status] in sortedStatus(value.statuses)" v-for="[id,status] in value.statuses"
:key="id" :key="id"
:status="status" :status="status"
:pref-static="pref.static" :pref-static="pref.static"
@ -120,6 +120,7 @@ export default class AddColumn extends Vue {
// update // update
let updateListener = (_: Event, status: Status) => { let updateListener = (_: Event, status: Status) => {
timeline.statuses.set(status.id, status) timeline.statuses.set(status.id, status)
timeline.statuses = this.sortedStatus(timeline.statuses)
this.$forceUpdate() this.$forceUpdate()
} }
ipcRenderer.on(`update-${timeline.name}-no-auth`, updateListener) ipcRenderer.on(`update-${timeline.name}-no-auth`, updateListener)