Conform more of the codebase to strictNullChecks (#10602)
* Conform more of the codebase to `strictNullChecks` * Conform more of the codebase to `strictNullChecks` * Fix types
This commit is contained in:
@@ -77,7 +77,7 @@ export class Media {
|
||||
*/
|
||||
public get srcHttp(): string | null {
|
||||
// eslint-disable-next-line no-restricted-properties
|
||||
return this.client.mxcUrlToHttp(this.srcMxc);
|
||||
return this.client.mxcUrlToHttp(this.srcMxc) || null;
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user