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:
lambda 2018-11-25 16:30:02 +00:00
commit 47403a055d

View file

@ -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.