fix(rn,dynamic-branding) filter out gradients

This commit is contained in:
Saúl Ibarra Corretgé 2022-06-14 14:53:14 +02:00 committed by Saúl Ibarra Corretgé
parent 6718ba7423
commit 4a04b8b5ee
1 changed files with 6 additions and 0 deletions

View File

@ -31,6 +31,12 @@ MiddlewareRegistry.register(store => next => action => {
didPageUrl,
inviteDomain
};
// TODO: implement support for gradients.
action.value.avatarBackgrounds = avatarBackgrounds.filter(
color => !color.includes('linear-gradient')
);
break;
}
}