Closed Powersource closed 1 year ago
@mixmix here's a slightly different one
I would've guessed that maybe carol doesn't manage to replicate alice, therefore doesn't see alice's additions of alice and bob, or something like that. But carol does see alice's messages posted in the group.
It does specifically fail at getting the group author. That getter looks like
author(epochRoot, cb) {
ssb.metafeeds.findRootFeedId(epochRoot.value.author, cb)
},
hmm added some logging in isRootFeedId. it runs on carol's id when she opens a group of her own, and that works fine (detects that it's a rootId). but when opening alice's group it logs that alice's rootId is not actually a rootId :thinking:
the member list is fixed if alice and carol connect (and follow) directly. hmm maybe it's something main feed related
Things seem to work better if I make peers replicate the main feeds of group members like
diff --git a/src/bot.js b/src/bot.js
index 304ae40..517e97e 100644
--- a/src/bot.js
+++ b/src/bot.js
@@ -67,7 +67,11 @@ module.exports = function startSbot() {
partialReplication: {
0: [{}],
1: [{ purpose: "main" }, { purpose: "group/additions" }],
- group: [{ purpose: "$groupSecret" }, { purpose: "group/additions" }],
+ group: [
+ { purpose: "main" },
+ { purpose: "$groupSecret" },
+ { purpose: "group/additions" },
+ ],
},
},
});
I init alice bob carol, connect them in that order (i.e. not alice and carol). Carol doesn't manage to list members, and also gets this error (not crashing) every time she tries to render the group.