Move StandaloneRegistration to React
This commit is contained in:
parent
67b17ec317
commit
7c1ce3366d
20 changed files with 452 additions and 1358 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue