Repository navigation
Promote a room-only identity for a group link, and say joined only when the room is here (#899) - #900
Merged
Merged
Conversation
…en the room is here (ThinkFlowLab#899) A Bot that used a face-to-face room keeps a room-only Bot Social identity: the host does not poll it and the guest cannot send the knock from it, so the claim landed and nobody was seated, and the dialog then said 'already joined'. Fixes ThinkFlowLab#899.
Collaborator
Author
|
Verdict: PASS at 6ae1491 Ran:
Not run: full Findings: no actionable findings.
Disclosure: the same executor session that wrote this PR ran this review (owner asked for one focused review, speed first; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Written-by: Dev
Fixes #899
A Bot that used a face-to-face room keeps a room-only Bot Social identity.
mintRoomInviteandclaimTicket(core/src/host/room-membership.js) asked for an identity only when a Bot had no handle, so a room-only one stayed as it was:sendTicketShare(needs an active member): Chief has no Bot Social identity yet;pollOncepolls only active members, so the knock was never read and nobody was seated;plugins/social/client.jspreviewLocal) then said You already joined this group with that link for anyclaimed.Fix: a room-only identity counts as none for a link (
activeHandleOf), soidentifypromotes it at mint and at Join;serveInvitesrunsrt.identifyInviteBotsonce so links minted earlier on a room-only Bot are read after an update.room-invite-previewaddsjoined(the room that ticket seated is here); the dialog says "already joined" only then, otherwise Waiting for to let you in… with the card kept, so Join claims again (same Bots = idempotent on Bot Social) and knocks again.Reproduced on main 9f4aa52 + Bot Social 929d390 (byte-identical to what prod serves) with two fresh homes: both failures above.
Verification at
6ae149150f36e5557f05b239c88de1a7348ff628core:node --test test/room-ticket-seat.test.js test/remote-room.test.js test/room-membership.test.js test/authz.test.js→ 99/99.plugins/social:TZ=UTC npm test→ 395/395.#899tests incore/test/room-ticket-seat.test.jsand the updated dialog test inplugins/social/test/social.test.jsfail with the base sources (fail 2 / fail 1), pass here.ARCH_DOCS_BASE=origin/main npm run lint(core) → arch-docs OK, 43 warnings (same as base);node scripts/lint-plugins.mjsok;build-client --checkok;ds-bot-patches checkok;changelog.mjs checkok.Not run: full
npm run verify(CI runs it), smoke bench, Desktop.