git ssb

2+

Dominic / yap



Commit 744fcc9d5bd44f15c720974e956f5edb8cfc6a46

request main identity, and save the id

Dominic Tarr committed on 5/2/2019, 8:07:49 AM
Parent: c8415b17c069c16925de05cee8b846141a3c4cfc

Files changed

index.jschanged
index.jsView
@@ -24,9 +24,12 @@
2424 //actions may make writes to sbot, or can set things
2525
2626 require('ssb-client')(function (err, sbot) {
2727 if(err) throw err
28 + sbot.identities.main(function (err, id) {
29 + sbot.id = id
2830
31 + if(!sbot.id) throw new Error('sbot id missing')
2932 var coherence = Coherence(require('./layout'))
3033
3134 //core: render an avatar, select
3235 .use('avatar', require('./apis/avatar')(sbot))
@@ -193,9 +196,9 @@
193196 }
194197 })
195198 })
196199 )
197-})
200 +})})
198201
199202
200203
201204

Built with git-ssb-web