Support ultramarine convo colors from Android linked devices

This commit is contained in:
Josh Perez 2020-04-15 17:39:48 -04:00 committed by GitHub
parent 14b11041ea
commit d88c21e5b6
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
5 changed files with 15 additions and 3 deletions

View file

@ -19,7 +19,8 @@ type OldColor =
| 'purple'
| 'red'
| 'teal'
| 'yellow';
| 'yellow'
| 'ultramarine';
type NewColor =
| 'red'
@ -33,7 +34,8 @@ type NewColor =
| 'green'
| 'light_green'
| 'blue_grey'
| 'grey';
| 'grey'
| 'ultramarine';
export function migrateColor(color: OldColor): NewColor {
switch (color) {
@ -70,6 +72,7 @@ export function migrateColor(color: OldColor): NewColor {
case 'light_green':
case 'blue_grey':
case 'grey':
case 'ultramarine':
return color;
// Can uncomment this to ensure that we've covered all potential cases