mirror of
https://github.com/Nheko-Reborn/nheko.git
synced 2024-11-22 11:00:48 +03:00
Fix c&p error on room names in previews
This commit is contained in:
parent
52a3df88cd
commit
f14c192231
1 changed files with 2 additions and 5 deletions
|
@ -32,7 +32,7 @@ class RoomSummary : public QObject
|
|||
Q_PROPERTY(QString roomTopic READ roomTopic NOTIFY loaded)
|
||||
Q_PROPERTY(QString roomAvatarUrl READ roomAvatarUrl 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 isLoaded READ isLoaded NOTIFY loaded)
|
||||
Q_PROPERTY(int memberCount READ memberCount NOTIFY loaded)
|
||||
|
@ -51,10 +51,7 @@ public:
|
|||
QString reason() const { return reason_; }
|
||||
|
||||
QString roomid() const { return room ? QString::fromStdString(room->room_id) : ""; }
|
||||
QString roomName() const
|
||||
{
|
||||
return QString::fromStdString(room ? room->room_id : roomIdOrAlias);
|
||||
}
|
||||
QString roomName() const { return QString::fromStdString(room ? room->name : roomIdOrAlias); }
|
||||
QString roomTopic() const { return room ? QString::fromStdString(room->topic) : ""; }
|
||||
QString roomAvatarUrl() const { return room ? QString::fromStdString(room->avatar_url) : ""; }
|
||||
bool isInvite() const
|
||||
|
|
Loading…
Reference in a new issue