diff --git a/src/components/views/location/LocationButton.tsx b/src/components/views/location/LocationButton.tsx index 4ef0e744b16..e594a9f8a2b 100644 --- a/src/components/views/location/LocationButton.tsx +++ b/src/components/views/location/LocationButton.tsx @@ -119,9 +119,9 @@ export function textForLocation( ): string { const date = new Date(ts).toISOString(); if (description) { - return `Location "${description}" ${uri} at ${date}`; + return `Shared location "${description}" (${uri} at ${date})`; } else { - return `Location ${uri} at ${date}`; + return `Shared their location (${uri} at ${date})`; } } diff --git a/test/components/views/location/LocationButton-test.tsx b/test/components/views/location/LocationButton-test.tsx index 66c9fd08bd0..7891974e4fa 100644 --- a/test/components/views/location/LocationButton-test.tsx +++ b/test/components/views/location/LocationButton-test.tsx @@ -23,12 +23,12 @@ describe("LocationButton", () => { describe("textForLocation", () => { it("with no description, simply dumps URI and date", () => { expect(textForLocation("geo:43.2,54.6", 12345, null)).toBe( - "Location geo:43.2,54.6 at 1970-01-01T00:00:12.345Z"); + "Shared their location (geo:43.2,54.6 at 1970-01-01T00:00:12.345Z)"); }); it("with a description, includes that in the text", () => { expect(textForLocation("geo:12,43,3;u=2", 54321, "Me!")).toBe( - 'Location "Me!" geo:12,43,3;u=2 at 1970-01-01T00:00:54.321Z'); + 'Shared location "Me!" (geo:12,43,3;u=2 at 1970-01-01T00:00:54.321Z)'); }); }); });