git ssb

4+

Dominic / scuttlebot



Commit bea8c383ff7d998f95c37b59596b42b791d92b06

friends: add sync event to createFriendStream when live

Matt McKegg committed on 3/27/2017, 3:20:00 AM
Parent: 2fc86941bc8f1d882d194c5f0a27849528150914

Files changed

plugins/friends.jschanged
plugins/friends.jsView
@@ -123,8 +123,14 @@
123123 function push (to, hops) {
124124 return ps.push(meta ? {id: to, hops: hops} : to)
125125 }
126126
127 + if (live) {
128 + awaitSync(function () {
129 + ps.push({sync: true})
130 + })
131 + }
132 +
127133 //by default, also emit your own key.
128134 if(opts.self !== false)
129135 push(start, 0)
130136

Built with git-ssb-web