Live location share - redact related locations on beacon redaction (PSF-1151) (#8926)

* redact beacon locations on redaction

* redact beacon locations on beacon info redaction

* fussy import ordering

* use real fake redaction in beaconbody test
This commit is contained in:
Kerry
2022-06-29 09:07:36 +00:00
committed by GitHub
parent 1304ff18a5
commit 4486509d88
4 changed files with 172 additions and 4 deletions
+2
View File
@@ -97,6 +97,7 @@ const DEFAULT_CONTENT_PROPS: ContentProps = {
export const makeBeaconEvent = (
sender: string,
contentProps: Partial<ContentProps> = {},
roomId?: string,
): MatrixEvent => {
const { geoUri, timestamp, beaconInfoId, description } = {
...DEFAULT_CONTENT_PROPS,
@@ -105,6 +106,7 @@ export const makeBeaconEvent = (
return new MatrixEvent({
type: M_BEACON.name,
room_id: roomId,
sender,
content: makeBeaconContent(geoUri, timestamp, beaconInfoId, description),
});