Move StandaloneRegistration to React

This commit is contained in:
Fedor Indutny 2021-11-30 18:51:53 +01:00 committed by GitHub
parent 67b17ec317
commit 7c1ce3366d
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
20 changed files with 452 additions and 1358 deletions

View file

@ -2009,6 +2009,14 @@ export async function startApp(): Promise<void> {
window.textsecure.messaging = new window.textsecure.MessageSender(server);
// Update our profile key in the conversation if we just got linked.
const profileKey = await ourProfileKeyService.get();
if (firstRun && profileKey) {
const me = window.ConversationController.getOurConversation();
strictAssert(me !== undefined, "Didn't find newly created ourselves");
await me.setProfileKey(Bytes.toBase64(profileKey));
}
if (connectCount === 0) {
try {
// Force a re-fetch before we process our queue. We may want to turn on