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
|
@ -284,7 +284,10 @@ export default class MessageComposer extends React.Component<IProps, IState> {
|
|||
isMenuOpen: false,
|
||||
showStickers: false,
|
||||
showStickersButton: SettingsStore.getValue("MessageComposerInput.showStickersButton"),
|
||||
showLocationButton: SettingsStore.getValue("MessageComposerInput.showLocationButton"),
|
||||
showLocationButton: (
|
||||
!window.electron &&
|
||||
SettingsStore.getValue("MessageComposerInput.showLocationButton")
|
||||
),
|
||||
};
|
||||
|
||||
this.instanceId = instanceCount++;
|
||||
|
@ -340,8 +343,10 @@ export default class MessageComposer extends React.Component<IProps, IState> {
|
|||
|
||||
case "MessageComposerInput.showLocationButton":
|
||||
case "feature_location_share": {
|
||||
const showLocationButton = SettingsStore.getValue(
|
||||
"MessageComposerInput.showLocationButton");
|
||||
const showLocationButton = (
|
||||
!window.electron &&
|
||||
SettingsStore.getValue("MessageComposerInput.showLocationButton")
|
||||
);
|
||||
|
||||
if (this.state.showLocationButton !== showLocationButton) {
|
||||
this.setState({ showLocationButton });
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue