Auto-fix lint errors
This commit is contained in:
@@ -125,7 +125,7 @@ export class CapabilityText {
|
||||
if (eventCap.isState) {
|
||||
return !eventCap.keyStr
|
||||
? _t("with an empty state key")
|
||||
: _t("with state key %(stateKey)s", {stateKey: eventCap.keyStr});
|
||||
: _t("with state key %(stateKey)s", { stateKey: eventCap.keyStr });
|
||||
}
|
||||
return null; // room messages are handled specially
|
||||
}
|
||||
@@ -134,8 +134,8 @@ export class CapabilityText {
|
||||
// First see if we have a super simple line of text to provide back
|
||||
if (CapabilityText.simpleCaps[capability]) {
|
||||
const textForKind = CapabilityText.simpleCaps[capability];
|
||||
if (textForKind[kind]) return {primary: _t(textForKind[kind])};
|
||||
if (textForKind[GENERIC_WIDGET_KIND]) return {primary: _t(textForKind[GENERIC_WIDGET_KIND])};
|
||||
if (textForKind[kind]) return { primary: _t(textForKind[kind]) };
|
||||
if (textForKind[GENERIC_WIDGET_KIND]) return { primary: _t(textForKind[GENERIC_WIDGET_KIND]) };
|
||||
|
||||
// ... we'll fall through to the generic capability processing at the end of this
|
||||
// function if we fail to locate a simple string and the capability isn't for an
|
||||
@@ -215,7 +215,7 @@ export class CapabilityText {
|
||||
|
||||
// We don't have enough context to render this capability specially, so we'll present it as-is
|
||||
return {
|
||||
primary: _t("The <b>%(capability)s</b> capability", {capability}, {
|
||||
primary: _t("The <b>%(capability)s</b> capability", { capability }, {
|
||||
b: sub => <b>{sub}</b>,
|
||||
}),
|
||||
};
|
||||
@@ -348,7 +348,7 @@ export class CapabilityText {
|
||||
});
|
||||
}
|
||||
}
|
||||
return {primary};
|
||||
return { primary };
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -15,7 +15,7 @@ limitations under the License.
|
||||
*/
|
||||
|
||||
import SdkConfig from "../SdkConfig";
|
||||
import {MatrixClientPeg} from "../MatrixClientPeg";
|
||||
import { MatrixClientPeg } from "../MatrixClientPeg";
|
||||
|
||||
const JITSI_WK_PROPERTY = "im.vector.riot.jitsi";
|
||||
|
||||
|
||||
@@ -36,7 +36,7 @@ function getWidgetBuildUrl(): string {
|
||||
return SdkConfig.get().widget_build_url;
|
||||
}
|
||||
/* eslint-disable-next-line camelcase */
|
||||
return getCallBehaviourWellKnown()?.widget_build_url
|
||||
return getCallBehaviourWellKnown()?.widget_build_url;
|
||||
}
|
||||
|
||||
export function isManagedHybridWidgetEnabled(): boolean {
|
||||
|
||||
Reference in New Issue
Block a user