Enable location sharing (#7703)

This commit is contained in:
Andy Balaam
2022-02-02 11:44:17 +00:00
committed by GitHub
parent afbc843157
commit 70a44a8cd6
6 changed files with 6 additions and 59 deletions

View File

@@ -343,10 +343,7 @@ function textForMessageEvent(ev: MatrixEvent): () => string | null {
const content = ev.getContent();
const msgtype = content.msgtype;
if (
(LOCATION_EVENT_TYPE.matches(type) || LOCATION_EVENT_TYPE.matches(msgtype)) &&
SettingsStore.getValue("feature_location_share")
) {
if (LOCATION_EVENT_TYPE.matches(type) || LOCATION_EVENT_TYPE.matches(msgtype)) {
return textForLocationEvent(ev);
}