parent
58ff6beb26
commit
f3c5e7de5f
|
@ -35,7 +35,10 @@ export function processMessage (instanceName, timelineName, message) {
|
|||
// reproduce what is done for statuses for the conversation.
|
||||
//
|
||||
// It will add new DMs as new conversations instead of updating existing threads
|
||||
if (payload.last_status) {
|
||||
// If the last_status doesn't exist, just ignore it. There's not much we can do in that case
|
||||
addStatusOrNotification(instanceName, timelineName, payload.last_status)
|
||||
}
|
||||
break
|
||||
case 'filters_changed':
|
||||
emit('wordFiltersChanged', instanceName)
|
||||
|
|
|
@ -75,7 +75,7 @@ export async function getTimeline (instanceName, accessToken, timeline, maxId, s
|
|||
let { json: items, headers } = await getWithHeaders(url, auth(accessToken), { timeout: DEFAULT_TIMEOUT })
|
||||
|
||||
if (timeline === 'direct') {
|
||||
items = items.map(item => item.last_status)
|
||||
items = items.map(item => item.last_status).filter(Boolean) // ignore falsy last_status'es
|
||||
}
|
||||
return { items, headers }
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue