From bb5aed09cf0fcdaf9e2e2974bfe44888f43f14fa Mon Sep 17 00:00:00 2001 From: Tusooa Zhu Date: Sat, 11 Jun 2022 12:20:11 -0400 Subject: [PATCH] Display edited status --- src/modules/api.js | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/src/modules/api.js b/src/modules/api.js index e23cc030..d123dd7e 100644 --- a/src/modules/api.js +++ b/src/modules/api.js @@ -101,7 +101,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) } else if (message.event === 'pleroma:chat_update') {