Skip to content
Snippets Groups Projects

DM timeline: stream new statuses

Merged eal requested to merge fix/dm-timeline-streaming into develop
1 file
+ 8
0
Compare changes
  • Side-by-side
  • Inline
+ 8
0
@@ -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