aboutsummaryrefslogtreecommitdiffstats
path: root/tools
diff options
context:
space:
mode:
authorAdam Soltys <[email protected]>2026-10-07 08:23:42 -0700
committerAdam Soltys <[email protected]>2026-10-07 08:23:42 -0700
commitf5450cd46cf752a843205ff51e6d12cf0da4dac8 (patch)
treea97c181918412c06e3546921f0ca4c99fd87d6db /tools
parentfdb044b44019d45bf8f849a4cf64a56efbc54ada (diff)
downloadcoinosv3-f5450cd46cf752a843205ff51e6d12cf0da4dac8.tar.gz
coinosv3-f5450cd46cf752a843205ff51e6d12cf0da4dac8.zip
Communities: a room rebuilt with fresher keys folds its channels again
When our own community list came back with a channel key the local copy lacked (every community we create: its list entry carries the keys), the room was torn down to be rebuilt with them, but the wraps it had already opened stayed in seenWraps. The rebuilt room's subscription then skipped the relay replay, so its Control fold held only editions newer than the rebuild: a second channel showed up as the only one (no picker; general gone from the fold), and the guestbook lost its joins. Each room now remembers the wrap ids it opened and hands them back when it is rebuilt. chat-layout-test reaches Messages through the bottom nav. Co-Authored-By: Claude Opus 5.5 <[email protected]>
Diffstat (limited to 'tools')
-rw-r--r--tools/chat-layout-test.js5
1 files changed, 2 insertions, 3 deletions
diff --git a/tools/chat-layout-test.js b/tools/chat-layout-test.js
index 34c8dc0..875f75b 100644
--- a/tools/chat-layout-test.js
+++ b/tools/chat-layout-test.js
@@ -51,9 +51,8 @@ try {
await page.type('textarea', generateMnemonic(wordlist));
await click('button', 'Open wallet');
await waitText('receive', 15000);
- // .header-msgs is the shared header-button class — settings, lock and
- // search wear it too, and the first one is no longer this one
- await page.evaluate(() => [...document.querySelectorAll('button')]
+ // Messages is a button in the bottom nav
+ await page.evaluate(() => [...document.querySelectorAll('.app-nav-button')]
.find((b) => /message/i.test(b.getAttribute('aria-label') || ''))?.click());
await sleep(800);
await click('button', 'Create');