Add Voice Broadcast labs setting and composer button (#9279)

* Add Voice Broadcast labs setting and composer button

* Implement strict typing

* Extend MessageComposer-test

* Extend tests

* Revert some strict type fixex

* Convert FEATURES to enum; change case

* Use fake timers in MessageComposer-test
This commit is contained in:
Michael Weimann 2022-09-16 11:10:33 +02:00 committed by GitHub
parent 4a23630e06
commit a0c35d088a
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
13 changed files with 469 additions and 45 deletions

View file

@ -34,13 +34,13 @@ function cancelQuoting(context: TimelineRenderingType) {
interface IProps {
permalinkCreator: RoomPermalinkCreator;
replyToEvent: MatrixEvent;
replyToEvent?: MatrixEvent;
}
export default class ReplyPreview extends React.Component<IProps> {
public static contextType = RoomContext;
public render(): JSX.Element {
public render(): JSX.Element | null {
if (!this.props.replyToEvent) return null;
return <div className="mx_ReplyPreview">