Fix bad logic in chat color selection.
This commit is contained in:
parent
52ef4c6235
commit
ad6f51901e
1 changed files with 3 additions and 3 deletions
|
@ -911,13 +911,13 @@ public class Recipient {
|
|||
}
|
||||
|
||||
public @NonNull ChatColors getChatColors() {
|
||||
if (chatColors != null && chatColors.getId() instanceof ChatColors.Id.Custom) {
|
||||
if (chatColors != null && !(chatColors.getId() instanceof ChatColors.Id.Auto)) {
|
||||
return chatColors;
|
||||
} if (chatColors != null && chatColors.getId() instanceof ChatColors.Id.Auto) {
|
||||
} if (chatColors != null) {
|
||||
return getAutoChatColor();
|
||||
} else {
|
||||
ChatColors global = SignalStore.chatColorsValues().getChatColors();
|
||||
if (global != null && global.getId() instanceof ChatColors.Id.Custom) {
|
||||
if (global != null && !(global.getId() instanceof ChatColors.Id.Auto)) {
|
||||
return global;
|
||||
} else {
|
||||
return getAutoChatColor();
|
||||
|
|
Loading…
Add table
Reference in a new issue