avatarStore,
this::resolveSignalServiceAddress,
account.getRecipientStore());
- this.storageHelper = new StorageHelper(account, dependencies, groupHelper);
+ this.storageHelper = new StorageHelper(account, dependencies, groupHelper, profileHelper);
this.contactHelper = new ContactHelper(account);
this.syncHelper = new SyncHelper(account,
attachmentHelper,
if (!account.isMasterDevice()) {
throw new NotMasterDeviceException();
}
+
+ final var configurationStore = account.getConfigurationStore();
if (readReceipts != null) {
- account.getConfigurationStore().setReadReceipts(readReceipts);
+ configurationStore.setReadReceipts(readReceipts);
}
if (unidentifiedDeliveryIndicators != null) {
- account.getConfigurationStore().setUnidentifiedDeliveryIndicators(unidentifiedDeliveryIndicators);
+ configurationStore.setUnidentifiedDeliveryIndicators(unidentifiedDeliveryIndicators);
}
if (typingIndicators != null) {
- account.getConfigurationStore().setTypingIndicators(typingIndicators);
+ configurationStore.setTypingIndicators(typingIndicators);
}
if (linkPreviews != null) {
- account.getConfigurationStore().setLinkPreviews(linkPreviews);
+ configurationStore.setLinkPreviews(linkPreviews);
}
syncHelper.sendConfigurationMessage();
}
}
@Override
- public void removeLinkedDevices(int deviceId) throws IOException {
+ public void removeLinkedDevices(long deviceId) throws IOException {
dependencies.getAccountManager().removeDevice(deviceId);
var devices = dependencies.getAccountManager().getDevices();
account.setMultiDevice(devices.size() > 1);