Include ACI and PNI in DeviceResponse

This commit is contained in:
Fedor Indutny
2021-12-02 23:21:05 +01:00
committed by GitHub
parent 9c62622733
commit e507ce2f26
2 changed files with 20 additions and 3 deletions

View File

@@ -203,7 +203,7 @@ public class DeviceController {
device.setCreated(System.currentTimeMillis());
device.setCapabilities(accountAttributes.getCapabilities());
accounts.update(account.get(), a -> {
final Account updatedAccount = accounts.update(account.get(), a -> {
device.setId(a.getNextDeviceId());
messages.clear(a.getUuid(), device.getId());
a.addDevice(device);
@@ -211,7 +211,7 @@ public class DeviceController {
pendingDevices.remove(number);
return new DeviceResponse(device.getId());
return new DeviceResponse(updatedAccount.getUuid(), updatedAccount.getPhoneNumberIdentifier(), device.getId());
}
@Timed