git ssb

2+

ev / mvd



Commit 927a196d2a39ba986e263d436ad1eddf5d880f1e

silence messages from the future

Ev Bogue committed on 7/18/2018, 4:07:13 PM
Parent: 392e50fcc67f4ad4b873fc95b096e3018404f255

Files changed

views.jschanged
views.jsView
@@ -372,9 +372,13 @@
372372 return pull(
373373 Next(sbot.query, opts, ['value', 'timestamp']),
374374 pull.map(function (msg) {
375375 if (msg.value) {
376- return render(msg)
376 + if (msg.value.timestamp > Date.now()) {
377 + return h('div.future')
378 + } else {
379 + return render(msg)
380 + }
377381 }
378382 })
379383 )
380384 }

Built with git-ssb-web