Change attributes before queuing job

Co-authored-by: Scott Nonnenberg <scott@signal.org>
This commit is contained in:
Fedor Indutny
2024-11-05 18:45:05 -08:00
committed by GitHub
parent b97e67121f
commit 292ab54e22
3 changed files with 45 additions and 14 deletions

View File

@@ -2631,7 +2631,9 @@ export async function startApp(): Promise<void> {
// eslint-disable-next-line @typescript-eslint/no-non-null-assertion
const conversation = window.ConversationController.get(id)!;
conversation.enableProfileSharing();
conversation.enableProfileSharing({
reason: 'handleMessageSentProfileUpdate',
});
await DataWriter.updateConversation(conversation.attributes);
// Then we update our own profileKey if it's different from what we have