forked from AkkomaGang/akkoma-fe
Merge branch 'fix/dm-timeline-streaming' into 'develop'
DM timeline: stream new statuses Closes #170 See merge request pleroma/pleroma-fe!379
This commit is contained in:
commit
47403a055d
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