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 mxcUrl
? mx.mxcUrlToHttp(mxcUrl, size, size, 'crop', undefined, false, useAuthentication) ?? undefined
: undefined;
return (
mx.mxcUrlToHttp(mxcUrl, size, size, 'crop', undefined, false, useAuthentication) ?? undefined
);
};
export const trimReplyFromBody = (body: string): string => {