Strictify audio-messages (#10410)

This commit is contained in:
Michael Weimann 2023-03-21 10:08:44 +01:00 committed by GitHub
parent d4b81882e5
commit c238e72e47
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
4 changed files with 9 additions and 8 deletions

View file

@ -1,5 +1,5 @@
/*
Copyright 2021 The Matrix.org Foundation C.I.C.
Copyright 2021 - 2023 The Matrix.org Foundation C.I.C.
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
@ -46,7 +46,8 @@ export default class Clock extends React.Component<Props> {
public render(): React.ReactNode {
return (
<span aria-live={this.props["aria-live"]} role={this.props.role} className="mx_Clock">
{this.props.formatFn(this.props.seconds)}
{/* formatFn set by defaultProps */}
{this.props.formatFn!(this.props.seconds)}
</span>
);
}