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
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
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);
}