String aboutEmoji,
Optional<File> avatar
) throws IOException {
- var profile = getRecipientProfile(account.getSelfRecipientId());
+ var profile = getSelfProfile();
var builder = profile == null ? Profile.newBuilder() : Profile.newBuilder(profile);
if (givenName != null) {
builder.withGivenName(givenName);
account.getProfileStore().storeProfile(account.getSelfRecipientId(), newProfile);
}
+ public Profile getSelfProfile() {
+ return getRecipientProfile(account.getSelfRecipientId());
+ }
+
public List<Profile> getRecipientProfile(List<RecipientId> recipientIds) {
try {
account.getRecipientStore().setBulkUpdating(true);