mirror of
https://github.com/signalapp/Signal-Desktop.git
synced 2025-12-27 13:40:47 +00:00
Handle PniChangeNumber
This commit is contained in:
committed by
Josh Perez
parent
412f07d2a2
commit
79b48115e6
@@ -13,7 +13,7 @@ export async function updateOurUsernameAndPni(): Promise<void> {
|
||||
);
|
||||
|
||||
const me = window.ConversationController.getOurConversationOrThrow();
|
||||
const { username, pni } = await server.whoami();
|
||||
const { username } = await server.whoami();
|
||||
|
||||
me.set({ username: dropNull(username) });
|
||||
window.Signal.Data.updateConversation(me.attributes);
|
||||
@@ -23,6 +23,4 @@ export async function updateOurUsernameAndPni(): Promise<void> {
|
||||
manager,
|
||||
'updateOurUsernameAndPni: AccountManager not available'
|
||||
);
|
||||
|
||||
await manager.setPni(pni);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user