Skip to content
Snippets Groups Projects
Commit 47403a05 authored by lain's avatar lain
Browse files

Merge branch 'fix/dm-timeline-streaming' into 'develop'

DM timeline: stream new statuses

Closes #170

See merge request pleroma/pleroma-fe!379
parents 3263aa32 3ed05693
Branches
Tags
No related merge requests found
......@@ -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.
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment