From 311d0f4dd4faad6d44f45550f362d7373cd34bb9 Mon Sep 17 00:00:00 2001 From: automated-signal <37887102+automated-signal@users.noreply.github.com> Date: Tue, 9 Apr 2024 12:38:05 -0500 Subject: [PATCH] Fetch updated profile on profile key update Co-authored-by: Fedor Indutny <79877362+indutny-signal@users.noreply.github.com> --- ts/background.ts | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/ts/background.ts b/ts/background.ts index 5c6b0d985c..7db5ebe1ff 100644 --- a/ts/background.ts +++ b/ts/background.ts @@ -2474,7 +2474,11 @@ export async function startApp(): Promise { data.source ); - await conversation.setProfileKey(data.profileKey); + const hasChanged = await conversation.setProfileKey(data.profileKey); + + if (hasChanged) { + drop(conversation.getProfiles()); + } confirm(); }