use primary device pubkey when setting nickname

pull/603/head
sachaaaaa 5 years ago
parent 30b26807e8
commit dc626ec4d0

@ -722,7 +722,7 @@
});
Whisper.events.on('onEditProfile', async () => {
const ourNumber = textsecure.storage.user.getNumber();
const ourNumber = window.storage.get('primaryDevicePubKey');
const conversation = await ConversationController.getOrCreateAndWait(
ourNumber,
'private'

@ -1111,7 +1111,7 @@ MessageReceiver.prototype.extend({
Whisper.events.trigger('secondaryDeviceRegistration');
// Update profile name
if (dataMessage && dataMessage.profile) {
const ourNumber = textsecure.storage.user.getNumber();
const ourNumber = window.storage.get('primaryDevicePubKey');
const me = window.ConversationController.get(ourNumber);
if (me) {
me.setLokiProfile(dataMessage.profile);

Loading…
Cancel
Save