Commit 325cc232dd44d379082757ecd6a63f9305c81f9f
fix pull-next-step use for unread message counter in context
mix irving committed on 11/29/2017, 1:34:22 AMParent: 587dbc9dc35bb64afcd332f27a9162c6f39a5dc3
Files changed
app/html/context.js | changed |
app/html/context.js | ||
---|---|---|
@@ -44,22 +44,22 @@ | ||
44 | 44 | else |
45 | 45 | cache.delete(msg.key) |
46 | 46 | } |
47 | 47 | pull( |
48 | - next(api.feed.pull.private, {reverse: true, limit: 1000, live: false}, ['value', 'timestamp']), | |
48 | + next(api.feed.pull.private, {reverse: true, limit: 1000, live: false, property: ['value', 'timestamp']}), | |
49 | 49 | privateMsgFilter(), |
50 | 50 | pull.drain(updateUserUnreadMsgsCache) |
51 | 51 | ) |
52 | 52 | |
53 | 53 | pull( |
54 | - next(api.feed.pull.private, {old: false, live: true}, ['value', 'timestamp']), | |
54 | + next(api.feed.pull.private, {old: false, live: true, property: ['value', 'timestamp']}), | |
55 | 55 | privateMsgFilter(), |
56 | 56 | pull.drain(updateUserUnreadMsgsCache) |
57 | 57 | ) |
58 | 58 | |
59 | 59 | //TODO: calculate unread state for public threads/blogs |
60 | 60 | // pull( |
61 | - // next(api.feed.pull.public, {reverse: true, limit: 100, live: false}, ['value', 'timestamp']), | |
61 | + // next(api.feed.pull.public, {reverse: true, limit: 100, live: false, property: ['value', 'timestamp']}), | |
62 | 62 | // pull.drain(msg => { |
63 | 63 | // |
64 | 64 | // }) |
65 | 65 | // ) |
Built with git-ssb-web