- m.updateConfiguration(readReceipts, unidentifiedDeliveryIndicators, typingIndicators, linkPreviews);
- } catch (IOException e) {
- throw new IOErrorException("UpdateAccount error: " + e.getMessage(), e);
- } catch (NotMasterDeviceException e) {
+ m.updateConfiguration(new Configuration(Optional.ofNullable(readReceipts),
+ Optional.ofNullable(unidentifiedDeliveryIndicators),
+ Optional.ofNullable(typingIndicators),
+ Optional.ofNullable(linkPreviews)));
+ } catch (NotPrimaryDeviceException e) {