Add warning on search for user-key linkage unreliability

This commit is contained in:
Jack Kingsman
2026-03-11 18:45:03 -07:00
parent b311c406da
commit d38efc0421
2 changed files with 8 additions and 0 deletions

View File

@@ -243,6 +243,11 @@ export function SearchView({
Tip: use <code>user:</code> or <code>channel:</code> for keys or names, and wrap names
with spaces in them in quotes.
</p>
<p className="mt-2 text-xs">
Warning: User-key linkage for group messages is best-effort and based on correlation
at advertise time. It does not account for multiple users with the same name, and
should be considered unreliable.
</p>
</div>
)}

View File

@@ -71,6 +71,9 @@ describe('SearchView', () => {
render(<SearchView {...defaultProps} />);
expect(screen.getByText('Type to search across all messages')).toBeInTheDocument();
expect(screen.getByText(/Tip: use/i)).toBeInTheDocument();
expect(
screen.getByText(/User-key linkage for group messages is best-effort/i)
).toBeInTheDocument();
});
it('focuses input on mount', () => {