Commit 2d06a1eeb94bb8f9c819fe9f68ca43b8fae69adc
flip sync logic around
Dominic Tarr committed on 4/6/2017, 7:15:29 PMParent: 00dd21feb644ef3bc4da675b0b9edf96305343b8
Files changed
index.js | changed |
index.js | ||
---|---|---|
@@ -60,13 +60,13 @@ | ||
60 | 60 … | } |
61 | 61 … | |
62 | 62 … | function since () { |
63 | 63 … | var plugs = {} |
64 | - var sync = false | |
64 … | + var sync = true | |
65 | 65 … | for(var k in ssb) { |
66 | 66 … | if(ssb[k] && isObject(ssb[k]) && isFunction(ssb[k].since)) { |
67 | 67 … | plugs[k] = ssb[k].since.value |
68 | - sync = sync || (plugs[k] === ssb.since.value) | |
68 … | + sync = sync && (plugs[k] === ssb.since.value) | |
69 | 69 … | } |
70 | 70 … | } |
71 | 71 … | return { |
72 | 72 … | since: ssb.since.value, |
Built with git-ssb-web