mirror of
https://github.com/nextcloud/desktop.git
synced 2024-11-22 21:15:55 +03:00
Fix user status message alignment.
Signed-off-by: Camila <hello@camila.codes>
This commit is contained in:
parent
c684191a2d
commit
1f61d258bb
1 changed files with 3 additions and 3 deletions
|
@ -88,8 +88,8 @@ void UserStatus::slotFetchUserStatusFinished(const QJsonDocument &json, int stat
|
|||
}
|
||||
|
||||
const auto retrievedData = json.object().value("ocs").toObject().value("data").toObject(defaultValues);
|
||||
const auto emoji = retrievedData.value("icon").toString();
|
||||
const auto message = retrievedData.value("message").toString();
|
||||
const auto emoji = retrievedData.value("icon").toString().trimmed();
|
||||
const auto message = retrievedData.value("message").toString().trimmed();
|
||||
|
||||
_status = stringToEnum(retrievedData.value("status").toString());
|
||||
const auto visibleStatusText = message.isEmpty() ? enumToString(_status) : message;
|
||||
|
@ -105,7 +105,7 @@ UserStatus::Status UserStatus::status() const
|
|||
|
||||
QString UserStatus::message() const
|
||||
{
|
||||
return _message.trimmed();
|
||||
return _message;
|
||||
}
|
||||
|
||||
QUrl UserStatus::icon() const
|
||||
|
|
Loading…
Reference in a new issue