git ssb

10+

Matt McKegg / patchwork



Commit 6180a473aee1464e6a772212751bfffa0e8b97c8

use channel asserted timestamps for updating from now on

Matt McKegg committed on 7/9/2018, 8:16:38 AM
Parent: 5abb67e92e0a7e62bca89816bcd2e6de98f565a3

Files changed

sbot/channels.jschanged
sbot/channels.jsView
@@ -32,9 +32,10 @@
3232 if (!isLike && !isSubscription) {
3333 var channels = getChannels(msg)
3434 if (channels.length) {
3535 return channels.reduce((result, channel) => {
36- result[channel] = {timestamp: msg.timestamp}
36+ var timestamp = Math.min(msg.value.timestamp, msg.timestamp)
37+ result[channel] = {timestamp}
3738 return result
3839 }, {})
3940 }
4041 }

Built with git-ssb-web