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
3 changes: 2 additions & 1 deletion desktop/src/features/messages/ui/MessageTimeline.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -875,7 +875,8 @@ const MessageTimelineBase = React.forwardRef<
)}
</div>

{!isAtBottom ? (
{/* Physical bottom may be the frozen tail, not the newest message. */}
{!isAtBottom || bufferedTimeline.pendingCount > 0 ? (
<div
className={cn(
"pointer-events-none absolute inset-x-0 bottom-4 z-50 flex justify-center px-4",
Expand Down
16 changes: 16 additions & 0 deletions desktop/tests/e2e/mention-recipients.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,22 @@ for (const channel of ["general", "watercooler"]) {
await page.screenshot({
path: `test-results/mention-recipients/ambiguous-${channel}.png`,
});
if (channel === "general") {
await input.focus();
await input.press("ControlOrMeta+a");
expect(
await input.evaluate(() => window.getSelection()?.toString()),
).toBe("@Scout hello");
await page.keyboard.insertText("@Scout");
await page.getByTestId(`mention-suggestion-${FIRST}`).click();
await page.keyboard.type("hello");
await expect(input).toHaveText("@Scout hello");
await page.getByTestId("send-message").click();
await expect
.poll(() => recipients(page, "@Scout hello"))
.toEqual([[FIRST]]);
await expect(input).toHaveText("");
}
});
}

Expand Down
Loading
Loading