git ssb

7+

dinoworm 🐛 / patchcore



Commit d8af81c65c5bed954d2b1a3d6a6933217c57211a

whoops: fix handling broken contact messages

Matt McKegg committed on 3/17/2017, 4:14:46 AM
Parent: db863034370facd62379d62d56cfb98ddd96032d

Files changed

contact/obs.jschanged
contact/obs.jsView
@@ -70,9 +70,9 @@
7070
7171 function reduce (stream) {
7272 var newestValues = {}
7373 return MutantPullReduce(stream, (result, item) => {
74- if (!ref.isFeed(item.id)) return
74 + if (!ref.isFeed(item.id)) return result // invalid message, skip this item
7575 newestValues[item.id] = newestValues[item.id] || 0
7676 if (newestValues[item.id] < item.timestamp) {
7777 newestValues[item.id] = item.timestamp
7878 if (item.value != null) {

Built with git-ssb-web