git ssb

2+

mixmix / ticktack



Commit c9ecafd6549db6ab1422db8ca5993d178f87a44b

another context fix

mix irving committed on 10/12/2017, 4:25:31 AM
Parent: f6a16e3fc5c25cadd2445d141a36a91d964a1813

Files changed

app/html/context.jschanged
app/html/context.jsView
@@ -31,10 +31,10 @@
3131 // TODO - extract as contact.obs.recentPrivate or something
3232
3333 pull(
3434 next(api.feed.pull.private, {reverse: true, limit: 100, live: false}, ['value', 'timestamp']),
35+ pull.filter(msg => msg.value.content.type === 'post'), // TODO is this the best way to protect against votes?
3536 pull.filter(msg => msg.value.content.recps),
36- pull.filter(msg => msg.value.content.type === 'post'), // TODO is this the best way to protect against votes?
3737 pull.drain(msg => {
3838 msg.value.content.recps
3939 .map(recp => typeof recp === 'object' ? recp.link : recp)
4040 .filter(recp => recp != myKey)
@@ -89,9 +89,9 @@
8989 notifications: Math.random() > 0.7 ? Math.floor(Math.random()*9+1) : 0, // TODO
9090 imageEl: api.about.html.image(feedId), // TODO make avatar
9191 label: api.about.obs.name(feedId),
9292 selected: location.feed === feedId,
93- location: Object.assign(lastMsg, { feed: feedId }) // TODO make obs?
93+ location: Object.assign({}, lastMsg, { feed: feedId }) // TODO make obs?
9494 })
9595 })
9696 ])
9797 }

Built with git-ssb-web