mirror of
https://github.com/cinnyapp/cinny.git
synced 2025-11-05 06:50:28 +03:00
remove extra conditions
This commit is contained in:
parent
ede68feb12
commit
3562a5c893
1 changed files with 3 additions and 3 deletions
|
|
@ -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 => {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue