Disable location sharing button on Desktop (#7590)
This commit is contained in:
parent
8f7fa07152
commit
09a1bc66a8
2 changed files with 9 additions and 4 deletions
|
@ -307,7 +307,7 @@ export default class PreferencesUserSettingsTab extends React.Component<IProps,
|
|||
getShowLocationIfEnabled(): string[] {
|
||||
// TODO: when location sharing is out of labs, this can be deleted and
|
||||
// we can just add this to COMPOSER_SETTINGS
|
||||
if (SettingsStore.getValue("feature_location_share")) {
|
||||
if (!window.electron && SettingsStore.getValue("feature_location_share")) {
|
||||
return ['MessageComposerInput.showLocationButton'];
|
||||
} else {
|
||||
return [];
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue