Fix instances of double translation and guard translation calls using typescript (#11443)
Co-authored-by: Richard van der Hoff <1389908+richvdh@users.noreply.github.com>
This commit is contained in:
parent
d13b6e1b41
commit
ac70f7ac9b
157 changed files with 554 additions and 780 deletions
|
@ -17,7 +17,7 @@ limitations under the License.
|
|||
import { IAnnotatedPushRule, PushRuleAction, RuleId } from "matrix-js-sdk/src/matrix";
|
||||
import { logger } from "matrix-js-sdk/src/logger";
|
||||
|
||||
import { _td } from "../languageHandler";
|
||||
import { _td, TranslationKey } from "../languageHandler";
|
||||
import { StandardActions } from "./StandardActions";
|
||||
import { PushRuleVectorState, VectorState } from "./PushRuleVectorState";
|
||||
import { NotificationUtils } from "./NotificationUtils";
|
||||
|
@ -27,7 +27,7 @@ type StateToActionsMap = {
|
|||
};
|
||||
|
||||
interface IVectorPushRuleDefinition {
|
||||
description: string;
|
||||
description: TranslationKey;
|
||||
vectorStateToActions: StateToActionsMap;
|
||||
/**
|
||||
* Rules that should be updated to be kept in sync
|
||||
|
@ -37,7 +37,7 @@ interface IVectorPushRuleDefinition {
|
|||
}
|
||||
|
||||
class VectorPushRuleDefinition {
|
||||
public readonly description: string;
|
||||
public readonly description: TranslationKey;
|
||||
public readonly vectorStateToActions: StateToActionsMap;
|
||||
public readonly syncedRuleIds?: (RuleId | string)[];
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue