Migrate the hidden read receipts flag to new "send read receipts" option (#9141)
* Migrate the hidden read receipts flag to new "send read receipts" option For safety. * Appease linter & ignore guests * `void`
This commit is contained in:
@@ -96,7 +96,7 @@ declare global {
|
||||
* value.
|
||||
* @return {*} The value, or null if not found
|
||||
*/
|
||||
getSettingValue<T>(name: string, roomId?: string): Chainable<T>;
|
||||
getSettingValue<T>(name: string, roomId?: string, excludeDefault?: boolean): Chainable<T>;
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -116,9 +116,10 @@ Cypress.Commands.add("setSettingValue", (
|
||||
});
|
||||
});
|
||||
|
||||
Cypress.Commands.add("getSettingValue", <T = any>(name: string, roomId?: string): Chainable<T> => {
|
||||
// eslint-disable-next-line max-len
|
||||
Cypress.Commands.add("getSettingValue", <T = any>(name: string, roomId?: string, excludeDefault?: boolean): Chainable<T> => {
|
||||
return cy.getSettingsStore().then((store: typeof SettingsStore) => {
|
||||
return store.getValue(name, roomId);
|
||||
return store.getValue(name, roomId, excludeDefault);
|
||||
});
|
||||
});
|
||||
|
||||
|
||||
Reference in New Issue
Block a user