Skip to content

Commit

Permalink
if claimed timestamp is zero, use received time instead @mmckegg @Alj…
Browse files Browse the repository at this point in the history
  • Loading branch information
dominictarr committed Nov 21, 2018
1 parent 7ee3944 commit 7260ab6
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion index.js
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ var indexes = [
]

function mapRts (msg) {
msg.rts = Math.min(msg.timestamp, msg.value.timestamp)
msg.rts = Math.min(msg.timestamp, msg.value.timestamp) || msg.timestamp
return msg
}

Expand Down Expand Up @@ -71,3 +71,7 @@ exports.init = function (ssb, config) {
}






0 comments on commit 7260ab6

Please sign in to comment.