1
0
Fork 0
mirror of https://git.jami.net/savoirfairelinux/jami-client-qt.git synced 2025-08-03 22:35:45 +02:00

update-profile: fix dbus build issue

The dbus build was failing due to updateProfile having an incorrect number of arguments.

Change-Id: I0045554e2fc62851fc2cffdac27c8ab1cb905547
This commit is contained in:
Leopold 2024-12-06 11:02:56 -05:00
parent d188284245
commit 6093689cc4
2 changed files with 4 additions and 1 deletions

View file

@ -287,6 +287,7 @@ AccountModel::setAlias(const QString& accountId, const QString& alias, bool save
ConfigurationManager::instance().updateProfile(accountId,
alias,
"",
"",
5);// flag out of range to avoid updating avatar
Q_EMIT profileUpdated(accountId);
}
@ -302,6 +303,7 @@ AccountModel::setAvatar(const QString& accountId, const QString& avatar, bool sa
ConfigurationManager::instance().updateProfile(accountId,
accountInfo.profileInfo.alias,
avatar,
"PNG",
flag);
Q_EMIT profileUpdated(accountId);
}

View file

@ -489,6 +489,7 @@ public Q_SLOTS: // METHODS
void updateProfile(const QString& accountId,
const QString& displayName,
const QString& avatarPath,
const QString& fileType,
int flag)
{
// file type is set to PNG by default
@ -496,7 +497,7 @@ public Q_SLOTS: // METHODS
libjami::updateProfile(accountId.toStdString(),
displayName.toStdString(),
avatarPath.toStdString(),
"PNG",
fileType.toStdString(),
flag
);
}