From e5d55418ac4540c6eb1724c3aa440f5107edb745 Mon Sep 17 00:00:00 2001 From: Michelle Tang Date: Tue, 13 May 2025 11:52:23 -0400 Subject: [PATCH] Restore chat colors after backup. --- .../thoughtcrime/securesms/backup/v2/util/ChatStyleConverter.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/src/main/java/org/thoughtcrime/securesms/backup/v2/util/ChatStyleConverter.kt b/app/src/main/java/org/thoughtcrime/securesms/backup/v2/util/ChatStyleConverter.kt index 57dabe9ebb..6b33d4b4c0 100644 --- a/app/src/main/java/org/thoughtcrime/securesms/backup/v2/util/ChatStyleConverter.kt +++ b/app/src/main/java/org/thoughtcrime/securesms/backup/v2/util/ChatStyleConverter.kt @@ -130,7 +130,7 @@ fun ChatStyle.toLocal(importState: ImportState): ChatColors? { if (this.customColorId != null) { return importState.remoteToLocalColorId[this.customColorId]?.let { localId -> val colorId = ChatColors.Id.forLongValue(localId) - ChatColorsPalette.Bubbles.default.withId(colorId) + return SignalDatabase.chatColors.getById(colorId) } }