apps/meteor/app/lib/server/functions/setRoomAvatar.ts
Function setRoomAvatar
has 31 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
export const setRoomAvatar = async function (rid: string, dataURI: string, user: IUser): Promise<void> {
if (!isRegisterUser(user)) {
throw new Meteor.Error('invalid-user', 'Invalid user', {
function: 'RocketChat.setRoomAvatar',
});