Commit 402f85029889d7cc332cef170ab52fdc69bf4ae4
automatically refresh views when you post to them
Matt McKegg committed on 11/10/2016, 9:52:23 AMParent: 2b7b6d1ee223cff13398ee0e681e057878934d44
Files changed
modules/feed-summary.js | changed |
modules/feed-summary.js | ||
---|---|---|
@@ -56,8 +56,11 @@ | ||
56 | 56 | pull( |
57 | 57 | getStream({old: false}), |
58 | 58 | pull.drain((item) => { |
59 | 59 | var type = item && item.value && item.value.content.type |
60 | + if (item.value && item.value.author && !updates()) { | |
61 | + return refresh() | |
62 | + } | |
60 | 63 | if (type && type !== 'vote') { |
61 | 64 | if (filter) { |
62 | 65 | var update = (item.value.content.type === 'post' && item.value.content.root) ? { |
63 | 66 | type: 'message', |
Built with git-ssb-web