Enable location sharing (#7703)
This commit is contained in:
parent
afbc843157
commit
70a44a8cd6
6 changed files with 6 additions and 59 deletions
|
@ -125,19 +125,17 @@ export default class MessageEvent extends React.Component<IProps> implements IMe
|
|||
BodyType = UnknownBody;
|
||||
}
|
||||
|
||||
// TODO: this can be done in eventTypes when Polls stabilise
|
||||
// TODO: move to eventTypes when Polls spec stabilises
|
||||
if (M_POLL_START.matches(type)) {
|
||||
BodyType = sdk.getComponent('messages.MPollBody');
|
||||
}
|
||||
|
||||
// TODO: move to eventTypes when location sharing spec stabilises
|
||||
if (
|
||||
LOCATION_EVENT_TYPE.matches(type) ||
|
||||
(type === EventType.RoomMessage && msgtype === MsgType.Location)
|
||||
) {
|
||||
// TODO: tidy this up once location sharing is out of labs
|
||||
if (SettingsStore.getValue("feature_location_share")) {
|
||||
BodyType = sdk.getComponent('messages.MLocationBody');
|
||||
}
|
||||
BodyType = sdk.getComponent('messages.MLocationBody');
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue