Room
Methods
getAvatarUrl
Room.getAvatarUrl(baseUrl, width, height, resizeMethod, allowDefault)
Argument
Type
Default
Description
baseUrl
string
The homeserver base URL
width
number
The desired width of the thumbnail
height
number
The desired height of the thumbnail
resizeMethod
string
The thumbnail resize method to use, either "crop" or "scale"
allowDefault (deprecated)
boolean
true
True to allow an identicon for this room if an avatar URL wasn't explicitly set
Last updated