Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions desktop/src/features/channels/ui/MembersSidebar.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -283,6 +283,7 @@ export function MembersSidebar({
? pastedProfileQuery.data?.profiles[pastedPubkey]
: undefined;
const pastedKeyResolved =
pastedPubkey !== null &&
pastedProfileQuery.isSuccess &&
!pastedProfileQuery.isFetching &&
!rosterQuery.isLoading;
Expand Down
20 changes: 20 additions & 0 deletions desktop/tests/e2e/channels.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4787,6 +4787,26 @@ test("members sidebar offers nothing for a malformed key", async ({ page }) => {
await expect(page.getByText("No matching people or agents.")).toBeVisible();
});

test("members sidebar keeps the outsider notice to pasted keys once the roster is cached", async ({
page,
}) => {
await page.goto("/");
await openMembersSidebar(page, "general");

const search = page.getByTestId("channel-management-search-users");
const outsiderNotice = page.getByText(
"That key isn’t a member of this community yet.",
);
await search.fill(PASTED_NPUB);
await expect(outsiderNotice).toBeVisible();

await search.clear();
await search.fill("zzzz-matches-nobody");

await expect(page.getByText("No matching people or agents.")).toBeVisible();
await expect(outsiderNotice).toHaveCount(0);
});

test("members sidebar pages add-member search beyond the first 50 people", async ({
page,
}) => {
Expand Down
Loading