git ssb

2+

mixmix / ticktack



Commit 325cc232dd44d379082757ecd6a63f9305c81f9f

fix pull-next-step use for unread message counter in context

mix irving committed on 11/29/2017, 1:34:22 AM
Parent: 587dbc9dc35bb64afcd332f27a9162c6f39a5dc3

Files changed

app/html/context.jschanged
app/html/context.jsView
@@ -44,22 +44,22 @@
4444 else
4545 cache.delete(msg.key)
4646 }
4747 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']}),
4949 privateMsgFilter(),
5050 pull.drain(updateUserUnreadMsgsCache)
5151 )
5252
5353 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']}),
5555 privateMsgFilter(),
5656 pull.drain(updateUserUnreadMsgsCache)
5757 )
5858
5959 //TODO: calculate unread state for public threads/blogs
6060 // 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']}),
6262 // pull.drain(msg => {
6363 //
6464 // })
6565 // )

Built with git-ssb-web