forked from AkkomaGang/akkoma-fe
DM timeline: stream new statuses
This commit is contained in:
parent
3263aa323c
commit
3ed05693de
1 changed files with 8 additions and 0 deletions
|
@ -172,6 +172,14 @@ const addNewStatuses = (state, { statuses, showImmediately = false, timeline, us
|
|||
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.
|
||||
|
|
Loading…
Reference in a new issue