diff options
author | Kaito Sinclaire <MattWCSTRFAN@gmail.com> | 2018-04-18 04:09:06 -0700 |
---|---|---|
committer | Eugen Rochko <eugen@zeonfederated.com> | 2018-04-18 13:09:06 +0200 |
commit | 156b916caf4ec902a8db525843e95c1a42350207 (patch) | |
tree | 3f80c7da4842fc87bb56e62f5258072693fe415f /app/javascript/mastodon/reducers/contexts.js | |
parent | aedfea3554dc5cd60f4bebd828109d1ef4327814 (diff) |
Direct messages column (#4514)
* Added a timeline for Direct statuses * Lists all Direct statuses you've sent and received * Displayed in Getting Started * Streaming server support for direct TL * Changes to match other timelines in 2.0
Diffstat (limited to 'app/javascript/mastodon/reducers/contexts.js')
-rw-r--r-- | app/javascript/mastodon/reducers/contexts.js | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/app/javascript/mastodon/reducers/contexts.js b/app/javascript/mastodon/reducers/contexts.js index c1ecf7e8a..ebd01e532 100644 --- a/app/javascript/mastodon/reducers/contexts.js +++ b/app/javascript/mastodon/reducers/contexts.js @@ -41,8 +41,9 @@ const deleteFromContexts = (immutableState, ids) => immutableState.withMutations }); const filterContexts = (state, relationship, statuses) => { - const ownedStatusIds = statuses.filter(status => status.get('account') === relationship.id) - .map(status => status.get('id')); + const ownedStatusIds = statuses + .filter(status => status.get('account') === relationship.id) + .map(status => status.get('id')); return deleteFromContexts(state, ownedStatusIds); }; |