mirror of
https://git.jami.net/savoirfairelinux/jami-client-qt.git
synced 2025-08-04 23:05:48 +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:
parent
d188284245
commit
6093689cc4
2 changed files with 4 additions and 1 deletions
|
@ -287,6 +287,7 @@ AccountModel::setAlias(const QString& accountId, const QString& alias, bool save
|
||||||
ConfigurationManager::instance().updateProfile(accountId,
|
ConfigurationManager::instance().updateProfile(accountId,
|
||||||
alias,
|
alias,
|
||||||
"",
|
"",
|
||||||
|
"",
|
||||||
5);// flag out of range to avoid updating avatar
|
5);// flag out of range to avoid updating avatar
|
||||||
Q_EMIT profileUpdated(accountId);
|
Q_EMIT profileUpdated(accountId);
|
||||||
}
|
}
|
||||||
|
@ -302,6 +303,7 @@ AccountModel::setAvatar(const QString& accountId, const QString& avatar, bool sa
|
||||||
ConfigurationManager::instance().updateProfile(accountId,
|
ConfigurationManager::instance().updateProfile(accountId,
|
||||||
accountInfo.profileInfo.alias,
|
accountInfo.profileInfo.alias,
|
||||||
avatar,
|
avatar,
|
||||||
|
"PNG",
|
||||||
flag);
|
flag);
|
||||||
Q_EMIT profileUpdated(accountId);
|
Q_EMIT profileUpdated(accountId);
|
||||||
}
|
}
|
||||||
|
|
|
@ -489,6 +489,7 @@ public Q_SLOTS: // METHODS
|
||||||
void updateProfile(const QString& accountId,
|
void updateProfile(const QString& accountId,
|
||||||
const QString& displayName,
|
const QString& displayName,
|
||||||
const QString& avatarPath,
|
const QString& avatarPath,
|
||||||
|
const QString& fileType,
|
||||||
int flag)
|
int flag)
|
||||||
{
|
{
|
||||||
// file type is set to PNG by default
|
// file type is set to PNG by default
|
||||||
|
@ -496,7 +497,7 @@ public Q_SLOTS: // METHODS
|
||||||
libjami::updateProfile(accountId.toStdString(),
|
libjami::updateProfile(accountId.toStdString(),
|
||||||
displayName.toStdString(),
|
displayName.toStdString(),
|
||||||
avatarPath.toStdString(),
|
avatarPath.toStdString(),
|
||||||
"PNG",
|
fileType.toStdString(),
|
||||||
flag
|
flag
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue