git ssb

2+

mixmix / ticktack



Commit 6db39bb005b3d30740a91c3d6ba3a16619d9a48f

don't count messages you wrote as unread

Dominic Tarr committed on 11/19/2017, 10:22:32 PM
Parent: 20ecb42e14437431422a5f7f0615b0f7f878cb64

Files changed

app/html/context.jschanged
app/html/context.jsView
@@ -11,8 +11,9 @@
1111 'about.html.avatar': 'first',
1212 'about.obs.name': 'first',
1313 'feed.pull.private': 'first',
1414 'feed.pull.rollup': 'first',
15+ 'feed.pull.public': 'first',
1516 'keys.sync.id': 'first',
1617 'history.sync.push': 'first',
1718 'message.html.subject': 'first',
1819 'sbot.obs.localPeers': 'first',
@@ -28,8 +29,9 @@
2829 const myKey = api.keys.sync.id()
2930
3031 var nearby = api.sbot.obs.localPeers()
3132 var recentPeersContacted = Dict()
33+ var recentThreads = Dict()
3234 // TODO - extract as contact.obs.recentPrivate or something
3335
3436 var m = {}
3537
@@ -48,8 +50,16 @@
4850 recentPeersContacted.put(author, 0)
4951 })
5052 )
5153
54+//TODO: calculate unread state for public threads/blogs
55+// pull(
56+// next(api.feed.pull.public, {reverse: true, limit: 100, live: false}, ['value', 'timestamp']),
57+// pull.drain(msg => {
58+//
59+// })
60+// )
61+
5262 return h('Context -feed', [
5363 LevelOneContext(),
5464 LevelTwoContext()
5565 ])
@@ -164,4 +174,6 @@
164174 }
165175
166176
167177
178+
179+

Built with git-ssb-web