Live location share - forward latest location (PSF-1044) (#8860)
* handle beacon location events in ForwardDialog * add transformer for forwarded events in MessageContextMenu * remove canForward * update snapshots for beacon model change * add comments * fix bad copy pasted test * add test for beacon locations
This commit is contained in:
parent
0a90674e89
commit
b51ef246ab
12 changed files with 292 additions and 81 deletions
|
@ -281,14 +281,6 @@ export const isLocationEvent = (event: MatrixEvent): boolean => {
|
|||
);
|
||||
};
|
||||
|
||||
export function canForward(event: MatrixEvent): boolean {
|
||||
return !(
|
||||
M_POLL_START.matches(event.getType()) ||
|
||||
// disallow forwarding until psf-1044
|
||||
M_BEACON_INFO.matches(event.getType())
|
||||
);
|
||||
}
|
||||
|
||||
export function hasThreadSummary(event: MatrixEvent): boolean {
|
||||
return event.isThreadRoot && event.getThread()?.length && !!event.getThread().replyToEvent;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue