Support ultramarine convo colors from Android linked devices
This commit is contained in:
parent
14b11041ea
commit
d88c21e5b6
5 changed files with 15 additions and 3 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue