Use FormCard on the invitation page

It now looks a bit nicer, and I made sure everything scales down to
mobile as well.
This commit is contained in:
Joshua Goins
2025-05-08 14:30:20 -04:00
parent 28c39292f7
commit 3d15e4f061
3 changed files with 108 additions and 37 deletions

View File

@@ -195,7 +195,12 @@ class NeoChatRoom : public Quotient::Room
/**
* @brief When the current user was invited to the room.
*/
Q_PROPERTY(QDateTime inviteTimestamp READ inviteTimestamp NOTIFY inviteTimestampChanged)
Q_PROPERTY(QDateTime inviteTimestamp READ inviteTimestamp NOTIFY baseStateLoaded)
/**
* @brief When the current user was invited to the room.
*/
Q_PROPERTY(QString invitingUserId READ invitingUserId NOTIFY baseStateLoaded)
public:
explicit NeoChatRoom(Quotient::Connection *connection, QString roomId, Quotient::JoinState joinState = {});
@@ -528,12 +533,12 @@ public:
/**
* If we're invited to this room, the user that invited us. Undefined in other cases.
*/
Q_INVOKABLE QString invitingUserId() const;
QString invitingUserId() const;
/**
* If we're invited to this room, the timestamp when we were invited in. Undefined in other cases.
*/
Q_INVOKABLE QDateTime inviteTimestamp() const;
QDateTime inviteTimestamp() const;
/**
* @brief Return the cached file transfer information for the event.