add basic deletes support that works with masto WS

This commit is contained in:
Shpuld Shpuldson 2020-09-06 15:28:09 +03:00
parent a73b09c732
commit 40ca0b394e
7 changed files with 57 additions and 2 deletions

View file

@ -72,6 +72,8 @@ const api = {
showImmediately: timelineData.visibleStatuses.length === 0,
timeline: 'friends'
})
} else if (message.event === 'delete') {
dispatch('deleteStatusById', message.id)
} else if (message.event === 'pleroma:chat_update') {
dispatch('addChatMessages', {
chatId: message.chatUpdate.id,