mirror of
https://github.com/jkingsman/Remote-Terminal-for-MeshCore.git
synced 2026-08-12 11:43:03 +02:00
Add warning on search for user-key linkage unreliability
This commit is contained in:
@@ -243,6 +243,11 @@ export function SearchView({
|
|||||||
Tip: use <code>user:</code> or <code>channel:</code> for keys or names, and wrap names
|
Tip: use <code>user:</code> or <code>channel:</code> for keys or names, and wrap names
|
||||||
with spaces in them in quotes.
|
with spaces in them in quotes.
|
||||||
</p>
|
</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>
|
</div>
|
||||||
)}
|
)}
|
||||||
|
|
||||||
|
|||||||
@@ -71,6 +71,9 @@ describe('SearchView', () => {
|
|||||||
render(<SearchView {...defaultProps} />);
|
render(<SearchView {...defaultProps} />);
|
||||||
expect(screen.getByText('Type to search across all messages')).toBeInTheDocument();
|
expect(screen.getByText('Type to search across all messages')).toBeInTheDocument();
|
||||||
expect(screen.getByText(/Tip: use/i)).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', () => {
|
it('focuses input on mount', () => {
|
||||||
|
|||||||
Reference in New Issue
Block a user