git ssb

0+

alanz / patchwork



forked from Matt McKegg / patchwork

Commit 402f85029889d7cc332cef170ab52fdc69bf4ae4

automatically refresh views when you post to them

Matt McKegg committed on 11/10/2016, 9:52:23 AM
Parent: 2b7b6d1ee223cff13398ee0e681e057878934d44

Files changed

modules/feed-summary.jschanged
modules/feed-summary.jsView
@@ -56,8 +56,11 @@
5656 pull(
5757 getStream({old: false}),
5858 pull.drain((item) => {
5959 var type = item && item.value && item.value.content.type
60+ if (item.value && item.value.author && !updates()) {
61+ return refresh()
62+ }
6063 if (type && type !== 'vote') {
6164 if (filter) {
6265 var update = (item.value.content.type === 'post' && item.value.content.root) ? {
6366 type: 'message',

Built with git-ssb-web