Make more of the codebase conform to strict types (#10857)
This commit is contained in:
parent
7f017a84c2
commit
6a3f59cc76
45 changed files with 127 additions and 121 deletions
|
@ -38,7 +38,7 @@ interface IProps {
|
|||
}
|
||||
|
||||
interface IState {
|
||||
roomMember: RoomMember;
|
||||
roomMember: RoomMember | null;
|
||||
isWrapped: boolean;
|
||||
widgetDomain: string | null;
|
||||
}
|
||||
|
@ -56,7 +56,7 @@ export default class AppPermission extends React.Component<IProps, IState> {
|
|||
|
||||
// The second step is to find the user's profile so we can show it on the prompt
|
||||
const room = MatrixClientPeg.get().getRoom(this.props.roomId);
|
||||
let roomMember;
|
||||
let roomMember: RoomMember | null = null;
|
||||
if (room) roomMember = room.getMember(this.props.creatorUserId);
|
||||
|
||||
// Set all this into the initial state
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue