Fix typing indicator
This commit is contained in:
@@ -1718,4 +1718,13 @@ void NeoChatRoom::setRoomState(const QString &type, const QString &stateKey, con
|
|||||||
setState(type, stateKey, QJsonDocument::fromJson(content).object());
|
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"
|
#include "moc_neochatroom.cpp"
|
||||||
|
|||||||
@@ -201,6 +201,10 @@ class NeoChatRoom : public Quotient::Room
|
|||||||
*/
|
*/
|
||||||
Q_PROPERTY(ChatBarCache *editCache READ editCache CONSTANT)
|
Q_PROPERTY(ChatBarCache *editCache READ editCache CONSTANT)
|
||||||
|
|
||||||
|
#if Quotient_VERSION_MINOR == 8
|
||||||
|
Q_PROPERTY(QList<Quotient::RoomMember> otherMembersTyping READ otherMembersTyping NOTIFY typingChanged)
|
||||||
|
#endif
|
||||||
|
|
||||||
public:
|
public:
|
||||||
/**
|
/**
|
||||||
* @brief Define the types on inline messages that can be shown.
|
* @brief Define the types on inline messages that can be shown.
|
||||||
@@ -613,6 +617,10 @@ private:
|
|||||||
void cleanupExtraEventRange(Quotient::RoomEventsRange events);
|
void cleanupExtraEventRange(Quotient::RoomEventsRange events);
|
||||||
void cleanupExtraEvent(const QString &eventId);
|
void cleanupExtraEvent(const QString &eventId);
|
||||||
|
|
||||||
|
#if Quotient_VERSION_MINOR == 8
|
||||||
|
QList<Quotient::RoomMember> otherMembersTyping() const;
|
||||||
|
#endif
|
||||||
|
|
||||||
private Q_SLOTS:
|
private Q_SLOTS:
|
||||||
void updatePushNotificationState(QString type);
|
void updatePushNotificationState(QString type);
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user