Appease the linter
This commit is contained in:
parent
08c5e9e039
commit
2ec94e8a69
5 changed files with 4 additions and 7 deletions
|
@ -70,7 +70,7 @@ export class OwnProfileStore extends AsyncStoreWithClient<IState> {
|
|||
* will be returned as an HTTP URL.
|
||||
* @returns The HTTP URL of the user's avatar
|
||||
*/
|
||||
public getHttpAvatarUrl(size: number = 0): string {
|
||||
public getHttpAvatarUrl(size = 0): string {
|
||||
if (!this.avatarMxc) return null;
|
||||
const adjustedSize = size > 1 ? size : undefined; // don't let negatives or zero through
|
||||
return this.matrixClient.mxcUrlToHttp(this.avatarMxc, adjustedSize, adjustedSize);
|
||||
|
|
|
@ -25,7 +25,7 @@ import {
|
|||
IWidgetData,
|
||||
MatrixCapabilities,
|
||||
Widget,
|
||||
WidgetApiFromWidgetAction
|
||||
WidgetApiFromWidgetAction,
|
||||
} from "matrix-widget-api";
|
||||
import { StopGapWidgetDriver } from "./StopGapWidgetDriver";
|
||||
import { EventEmitter } from "events";
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue