Fix typing indicator

This commit is contained in:
Tobias Fella
2024-06-28 23:56:33 +02:00
parent 76d68bb3e4
commit 1460132772
2 changed files with 17 additions and 0 deletions

View File

@@ -1718,4 +1718,13 @@ void NeoChatRoom::setRoomState(const QString &type, const QString &stateKey, con
setState(type, stateKey, QJsonDocument::fromJson(content).object());
}
#if Quotient_VERSION_MINOR == 8
QList<RoomMember> NeoChatRoom::otherMembersTyping() const
{
auto memberTyping = membersTyping();
memberTyping.removeAll(localMember());
return memberTyping;
}
#endif
#include "moc_neochatroom.cpp"

View File

@@ -201,6 +201,10 @@ class NeoChatRoom : public Quotient::Room
*/
Q_PROPERTY(ChatBarCache *editCache READ editCache CONSTANT)
#if Quotient_VERSION_MINOR == 8
Q_PROPERTY(QList<Quotient::RoomMember> otherMembersTyping READ otherMembersTyping NOTIFY typingChanged)
#endif
public:
/**
* @brief Define the types on inline messages that can be shown.
@@ -613,6 +617,10 @@ private:
void cleanupExtraEventRange(Quotient::RoomEventsRange events);
void cleanupExtraEvent(const QString &eventId);
#if Quotient_VERSION_MINOR == 8
QList<Quotient::RoomMember> otherMembersTyping() const;
#endif
private Q_SLOTS:
void updatePushNotificationState(QString type);