Enable location sharing (#7703)
This commit is contained in:
parent
afbc843157
commit
70a44a8cd6
6 changed files with 6 additions and 59 deletions
|
@ -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);
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue