Use updated membersTyping functions from libquotient

This commit is contained in:
James Graham
2024-05-06 12:43:01 +01:00
committed by Tobias Fella
parent 430bafafe7
commit 35ab4e6e09
3 changed files with 2 additions and 42 deletions

View File

@@ -40,27 +40,6 @@ class NeoChatRoom : public Quotient::Room
QML_ELEMENT
QML_UNCREATABLE("")
/**
* @brief A list of users currently typing in the room.
*
* The list does not include the local user.
*
* This is different to getting a list of Quotient::User objects
* as neither of those can provide details like the displayName or avatarMediaId
* without the room context as these can vary from room to room. This function
* provides the room context and puts the result as a list of QVariantMap objects.
*
* @return a QVariantMap for the user with the following
* parameters:
* - id - User ID.
* - avatarMediaId - Avatar id in the context of this room.
* - displayName - Display name in the context of this room.
* - display - Name in the context of this room.
*
* @sa Quotient::User
*/
Q_PROPERTY(QVariantList usersTyping READ getUsersTyping NOTIFY typingChanged)
/**
* @brief Convenience function to get the QDateTime of the last event.
*
@@ -235,8 +214,6 @@ public:
explicit NeoChatRoom(Quotient::Connection *connection, QString roomId, Quotient::JoinState joinState = {});
[[nodiscard]] QVariantList getUsersTyping() const;
[[nodiscard]] QDateTime lastActiveTime();
/**