remove extra conditions

This commit is contained in:
Ajay Bura 2025-07-19 14:45:13 +05:30
parent ede68feb12
commit 3562a5c893

View file

@ -299,9 +299,9 @@ export const getDirectRoomAvatarUrl = (
return getRoomAvatarUrl(mx, room, size, useAuthentication); return getRoomAvatarUrl(mx, room, size, useAuthentication);
} }
return mxcUrl return (
? mx.mxcUrlToHttp(mxcUrl, size, size, 'crop', undefined, false, useAuthentication) ?? undefined mx.mxcUrlToHttp(mxcUrl, size, size, 'crop', undefined, false, useAuthentication) ?? undefined
: undefined; );
}; };
export const trimReplyFromBody = (body: string): string => { export const trimReplyFromBody = (body: string): string => {