Unverified Commit 3997538e authored by devyaniChoubey's avatar devyaniChoubey Committed by GitHub
Browse files

[FIX] Incorrect size params to avatar endpoint (#1875)


Co-authored-by: default avatarDiego Mello <diegolmello@gmail.com>
parent 589e2e26
......@@ -6,7 +6,7 @@ import { settings as RocketChatSettings } from '@rocket.chat/sdk';
import Touch from '../utils/touch';
const formatUrl = (url, baseUrl, uriSize, avatarAuthURLFragment) => (
`${ baseUrl }${ url }?format=png&width=${ uriSize }&height=${ uriSize }${ avatarAuthURLFragment }`
`${ baseUrl }${ url }?format=png&size=${ uriSize }&${ avatarAuthURLFragment }`
);
const Avatar = React.memo(({
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment