git ssb

16+

cel / patchfoo



Commit a40521c160b4cb9b3e36e8668612dd3321ff2a96

Support new way of skipping ssb-ooo

cel committed on 12/13/2018, 2:31:38 AM
Parent: a28f9dbb28295200e56066ac3ae75bc97b74669b

Files changed

lib/app.jschanged
lib/app.jsView
@@ -404,18 +404,14 @@
404404 return about && about.name
405405 }
406406
407407 function sbotGet(sbot, id, cb) {
408- // try sbot.get via ssb-ooo a50da3928500f3ac0fbead0a1b335a3dd5bbc096 first
409- try {
410- sbot.get({id: id, raw: true}, function (err, value) {
411- if (err && /^Param 0/.test(err.message)) {
412- return sbot.get(id, cb)
413- }
414- cb(err, value)
415- })
416- } catch(e) {
417- cb(e)
408 + // ssb-ooo@1.0.1 (a50da3928500f3ac0fbead0a1b335a3dd5bbc096): raw=true
409 + // ssb-ooo@1.1.0 (f7302d12e56d566b84205bbc0c8b882ae6fd9b12): ooo=false
410 + if (sbot.ooo) {
411 + sbot.get({id: id, raw: true, ooo: false}, cb)
412 + } else {
413 + sbot.get(id, cb)
418414 }
419415 }
420416
421417 function getMsgWithValue(sbot, id, cb) {

Built with git-ssb-web