Fix c&p error on room names in previews

This commit is contained in:
Nicolas Werner 2022-08-08 22:54:20 +02:00
parent 52a3df88cd
commit f14c192231
No known key found for this signature in database
GPG key ID: C8D75E610773F2D9

View file

@ -32,7 +32,7 @@ class RoomSummary : public QObject
Q_PROPERTY(QString roomTopic READ roomTopic NOTIFY loaded) Q_PROPERTY(QString roomTopic READ roomTopic NOTIFY loaded)
Q_PROPERTY(QString roomAvatarUrl READ roomAvatarUrl NOTIFY loaded) Q_PROPERTY(QString roomAvatarUrl READ roomAvatarUrl NOTIFY loaded)
Q_PROPERTY(bool isInvite READ isInvite NOTIFY loaded) Q_PROPERTY(bool isInvite READ isInvite NOTIFY loaded)
Q_PROPERTY(bool isSpace READ isInvite NOTIFY loaded) Q_PROPERTY(bool isSpace READ isSpace NOTIFY loaded)
Q_PROPERTY(bool isKnockOnly READ isKnockOnly NOTIFY loaded) Q_PROPERTY(bool isKnockOnly READ isKnockOnly NOTIFY loaded)
Q_PROPERTY(bool isLoaded READ isLoaded NOTIFY loaded) Q_PROPERTY(bool isLoaded READ isLoaded NOTIFY loaded)
Q_PROPERTY(int memberCount READ memberCount NOTIFY loaded) Q_PROPERTY(int memberCount READ memberCount NOTIFY loaded)
@ -51,10 +51,7 @@ public:
QString reason() const { return reason_; } QString reason() const { return reason_; }
QString roomid() const { return room ? QString::fromStdString(room->room_id) : ""; } QString roomid() const { return room ? QString::fromStdString(room->room_id) : ""; }
QString roomName() const QString roomName() const { return QString::fromStdString(room ? room->name : roomIdOrAlias); }
{
return QString::fromStdString(room ? room->room_id : roomIdOrAlias);
}
QString roomTopic() const { return room ? QString::fromStdString(room->topic) : ""; } QString roomTopic() const { return room ? QString::fromStdString(room->topic) : ""; }
QString roomAvatarUrl() const { return room ? QString::fromStdString(room->avatar_url) : ""; } QString roomAvatarUrl() const { return room ? QString::fromStdString(room->avatar_url) : ""; }
bool isInvite() const bool isInvite() const