DM timeline: stream new statuses

This commit is contained in:
eal 2018-11-25 18:11:57 +02:00
parent 3263aa323c
commit 3ed05693de

View File

@ -172,6 +172,14 @@ const addNewStatuses = (state, { statuses, showImmediately = false, timeline, us
sortTimeline(mentions) sortTimeline(mentions)
} }
} }
if (status.visibility === 'direct') {
const dms = state.timelines.dms
mergeOrAdd(dms.statuses, dms.statusesObject, status)
dms.newStatusCount += 1
sortTimeline(dms)
}
} }
// Decide if we should treat the status as new for this timeline. // Decide if we should treat the status as new for this timeline.