Fix for per chat color selection

This commit is contained in:
Josh Perez 2021-06-03 14:46:38 -04:00 committed by GitHub
parent 56f0e1ba46
commit c055240dc5
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 7 additions and 4 deletions

View File

@ -4878,10 +4878,6 @@ export class ConversationModel extends window.Backbone
'defaultConversationColor'
);
if (defaultConversationColor.customColorData) {
return 'custom';
}
return this.get('conversationColor') || defaultConversationColor.color;
}
@ -4893,6 +4889,13 @@ export class ConversationModel extends window.Backbone
'defaultConversationColor'
);
if (this.getConversationColor() !== 'custom') {
return {
customColor: undefined,
customColorId: undefined,
};
}
return {
customColor:
this.get('customColor') ||