mirror of
https://github.com/Novaloop-AG/healthchat-web.git
synced 2026-11-24 18:59:17 +00:00
Live location share - disallow message pinning (PSF-1084) (#8928)
* unmock isContentActionable * test message pinning * disallow pinning for beacon events * try to make tests more readable
This commit is contained in:
@@ -25,9 +25,9 @@ import { ForwardableEventTransformFunction } from "./types";
|
||||
export const getForwardableBeaconEvent: ForwardableEventTransformFunction = (event, cli) => {
|
||||
const room = cli.getRoom(event.getRoomId());
|
||||
const beacon = room.currentState.beacons?.get(getBeaconInfoIdentifier(event));
|
||||
const latestLocationEvent = beacon.latestLocationEvent;
|
||||
const latestLocationEvent = beacon?.latestLocationEvent;
|
||||
|
||||
if (beacon.isLive && latestLocationEvent) {
|
||||
if (beacon?.isLive && latestLocationEvent) {
|
||||
return latestLocationEvent;
|
||||
}
|
||||
return null;
|
||||
|
||||
Reference in New Issue
Block a user