fix some clazy warning and deprecations
This commit is contained in:
@@ -47,7 +47,7 @@ public:
|
||||
Q_INVOKABLE void loginWithCredentials(QString, QString, QString, QString);
|
||||
Q_INVOKABLE void loginWithAccessToken(QString, QString, QString, QString);
|
||||
|
||||
Q_INVOKABLE void changePassword(Connection *connection, const QString ¤tPassword, const QString &newPassword);
|
||||
Q_INVOKABLE void changePassword(Quotient::Connection *connection, const QString ¤tPassword, const QString &newPassword);
|
||||
|
||||
int accountCount() const;
|
||||
|
||||
@@ -104,7 +104,7 @@ Q_SIGNALS:
|
||||
void connectionChanged();
|
||||
void isOnlineChanged();
|
||||
void aboutDataChanged();
|
||||
void passwordStatus(PasswordStatus status);
|
||||
void passwordStatus(Controller::PasswordStatus status);
|
||||
|
||||
public Q_SLOTS:
|
||||
void logout(Quotient::Connection *conn);
|
||||
|
||||
@@ -297,15 +297,15 @@ QString NeoChatRoom::eventToString(const RoomEvent &evt, Qt::TextFormat format,
|
||||
}
|
||||
QString text {};
|
||||
if (e.isRename()) {
|
||||
if (e.displayName().isEmpty())
|
||||
if (e.newDisplayName()->isEmpty())
|
||||
text = tr("cleared their display name");
|
||||
else
|
||||
text = tr("changed their display name to %1").arg(e.displayName().toHtmlEscaped());
|
||||
text = tr("changed their display name to %1").arg(e.newDisplayName()->toHtmlEscaped());
|
||||
}
|
||||
if (e.isAvatarUpdate()) {
|
||||
if (!text.isEmpty())
|
||||
text += " and ";
|
||||
if (e.avatarUrl().isEmpty())
|
||||
if (e.newAvatarUrl()->isEmpty())
|
||||
text += tr("cleared their avatar");
|
||||
else if (e.prevContent()->avatarUrl->isEmpty())
|
||||
text += tr("set an avatar");
|
||||
|
||||
Reference in New Issue
Block a user