Display edited status

This commit is contained in:
Tusooa Zhu 2022-06-11 12:20:11 -04:00 committed by Sol Fisher Romanoff
parent 50b3f35ca6
commit 8b7bcd2d30
No known key found for this signature in database
GPG key ID: 9D3F2B64F2341B62

View file

@ -99,7 +99,12 @@ const api = {
timeline: 'friends'
})
} else if (message.event === 'status.update') {
// Insert dispatch code here.
dispatch('addNewStatuses', {
statuses: [message.status],
userId: false,
showImmediately: message.status.id in timelineData.visibleStatusesObject,
timeline: 'friends'
})
} else if (message.event === 'delete') {
dispatch('deleteStatusById', message.id)
}