diff --git a/src/identity/contactMapping.test.ts b/src/identity/contactMapping.test.ts index af0efbf57a6..7fbba6291ed 100644 --- a/src/identity/contactMapping.test.ts +++ b/src/identity/contactMapping.test.ts @@ -264,6 +264,7 @@ describe('saveContacts', () => { contacts: [mockE164NumberInvite, mockE164Number, mockE164Number2Invite], clientPlatform: 'android', clientVersion: '0.0.1', + deviceId: 'abc-def-123', }), signal: expect.any(AbortSignal), }) @@ -301,6 +302,7 @@ describe('saveContacts', () => { contacts: [mockE164Number2, mockE164NumberInvite, mockE164Number, mockE164Number2Invite], clientPlatform: 'android', clientVersion: '0.0.1', + deviceId: 'abc-def-123', }), signal: expect.any(AbortSignal), }) @@ -373,6 +375,7 @@ describe('saveContacts', () => { contacts: [mockE164NumberInvite, mockE164Number, mockE164Number2Invite], clientPlatform: 'android', clientVersion: '0.0.1', + deviceId: 'abc-def-123', }), signal: expect.any(AbortSignal), }) diff --git a/src/identity/contactMapping.ts b/src/identity/contactMapping.ts index f2ccdd95cf6..a5e42297247 100644 --- a/src/identity/contactMapping.ts +++ b/src/identity/contactMapping.ts @@ -459,6 +459,7 @@ export function* saveContacts() { const walletAddress = yield* select(walletAddressSelector) const signedMessage = yield* call(retrieveSignedMessage) + const deviceId = yield* call(DeviceInfo.getUniqueId) const response: Response = yield* call(fetchWithTimeout, `${networkConfig.saveContactsUrl}`, { method: 'POST', @@ -471,6 +472,7 @@ export function* saveContacts() { contacts, clientPlatform: Platform.OS, clientVersion: DeviceInfo.getVersion(), + deviceId, }), })