kopia lustrzana https://github.com/ryukoposting/Signal-Android
Fix bad logic in chat color selection.
rodzic
52ef4c6235
commit
ad6f51901e
|
@ -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();
|
||||
|
|
Ładowanie…
Reference in New Issue