mirror of
https://github.com/vector-im/element-web.git
synced 2024-11-15 20:54:59 +08:00
Move pin drop out of labs (PSG-664) (#9135)
* Move pin drop out of labs (PSG-664) Signed-off-by: Johannes Marbach <johannesm@element.io> * Regenerate strings Signed-off-by: Johannes Marbach <johannesm@element.io>
This commit is contained in:
parent
94f3168ab8
commit
4a14882938
@ -18,7 +18,6 @@ limitations under the License.
|
||||
|
||||
import { SynapseInstance } from "../../plugins/synapsedocker";
|
||||
import Chainable = Cypress.Chainable;
|
||||
import { SettingLevel } from "../../../src/settings/SettingLevel";
|
||||
|
||||
describe("Location sharing", () => {
|
||||
let synapse: SynapseInstance;
|
||||
@ -40,9 +39,6 @@ describe("Location sharing", () => {
|
||||
|
||||
cy.initTestUser(synapse, "Tom");
|
||||
});
|
||||
|
||||
// enable pin drop location sharing feature
|
||||
cy.setSettingValue("feature_location_share_pin_drop", null, SettingLevel.DEVICE, true);
|
||||
});
|
||||
|
||||
afterEach(() => {
|
||||
|
@ -49,9 +49,7 @@ const getEnabledShareTypes = (relation): LocationShareType[] => {
|
||||
enabledShareTypes.push(LocationShareType.Live);
|
||||
}
|
||||
|
||||
if (SettingsStore.getValue("feature_location_share_pin_drop")) {
|
||||
enabledShareTypes.push(LocationShareType.Pin);
|
||||
}
|
||||
enabledShareTypes.push(LocationShareType.Pin);
|
||||
|
||||
return enabledShareTypes;
|
||||
};
|
||||
|
@ -900,7 +900,6 @@
|
||||
"Jump to date (adds /jumptodate and jump to date headers)": "Jump to date (adds /jumptodate and jump to date headers)",
|
||||
"Send read receipts": "Send read receipts",
|
||||
"Right-click message context menu": "Right-click message context menu",
|
||||
"Location sharing - pin drop": "Location sharing - pin drop",
|
||||
"Live Location Sharing (temporary implementation: locations persist in room history)": "Live Location Sharing (temporary implementation: locations persist in room history)",
|
||||
"Favourite Messages (under active development)": "Favourite Messages (under active development)",
|
||||
"Font size": "Font size",
|
||||
|
@ -413,13 +413,6 @@ export const SETTINGS: {[setting: string]: ISetting} = {
|
||||
displayName: _td("Right-click message context menu"),
|
||||
default: false,
|
||||
},
|
||||
"feature_location_share_pin_drop": {
|
||||
isFeature: true,
|
||||
labsGroup: LabGroup.Messaging,
|
||||
supportedLevels: LEVELS_FEATURE,
|
||||
displayName: _td("Location sharing - pin drop"),
|
||||
default: false,
|
||||
},
|
||||
"feature_location_share_live": {
|
||||
isFeature: true,
|
||||
labsGroup: LabGroup.Messaging,
|
||||
|
@ -213,8 +213,6 @@ describe('<LocationShareMenu />', () => {
|
||||
});
|
||||
|
||||
describe('with pin drop share type enabled', () => {
|
||||
beforeEach(() => enableSettings(["feature_location_share_pin_drop"]));
|
||||
|
||||
it('renders share type switch with own and pin drop options', () => {
|
||||
const component = getComponent();
|
||||
expect(component.find('LocationPicker').length).toBe(0);
|
||||
|
Loading…
Reference in New Issue
Block a user