Commit 6db39bb005b3d30740a91c3d6ba3a16619d9a48f
don't count messages you wrote as unread
Dominic Tarr committed on 11/19/2017, 10:22:32 PMParent: 20ecb42e14437431422a5f7f0615b0f7f878cb64
Files changed
app/html/context.js | changed |
app/html/context.js | ||
---|---|---|
@@ -11,8 +11,9 @@ | ||
11 | 11 | 'about.html.avatar': 'first', |
12 | 12 | 'about.obs.name': 'first', |
13 | 13 | 'feed.pull.private': 'first', |
14 | 14 | 'feed.pull.rollup': 'first', |
15 | + 'feed.pull.public': 'first', | |
15 | 16 | 'keys.sync.id': 'first', |
16 | 17 | 'history.sync.push': 'first', |
17 | 18 | 'message.html.subject': 'first', |
18 | 19 | 'sbot.obs.localPeers': 'first', |
@@ -28,8 +29,9 @@ | ||
28 | 29 | const myKey = api.keys.sync.id() |
29 | 30 | |
30 | 31 | var nearby = api.sbot.obs.localPeers() |
31 | 32 | var recentPeersContacted = Dict() |
33 | + var recentThreads = Dict() | |
32 | 34 | // TODO - extract as contact.obs.recentPrivate or something |
33 | 35 | |
34 | 36 | var m = {} |
35 | 37 | |
@@ -48,8 +50,16 @@ | ||
48 | 50 | recentPeersContacted.put(author, 0) |
49 | 51 | }) |
50 | 52 | ) |
51 | 53 | |
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 | + | |
52 | 62 | return h('Context -feed', [ |
53 | 63 | LevelOneContext(), |
54 | 64 | LevelTwoContext() |
55 | 65 | ]) |
@@ -164,4 +174,6 @@ | ||
164 | 174 | } |
165 | 175 | |
166 | 176 | |
167 | 177 | |
178 | + | |
179 | + |
Built with git-ssb-web