Merge pull request #603 from sachaaaaa/Fix_secondary_nickname

[multi-device] Fix secondary nickname
pull/605/head
Beaudan Campbell-Brown 6 years ago committed by GitHub
commit e88aca57f2
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

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

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

Loading…
Cancel
Save