Use updated membersTyping functions from libquotient
This commit is contained in:
committed by
Tobias Fella
parent
430bafafe7
commit
35ab4e6e09
@@ -262,23 +262,6 @@ void NeoChatRoom::forget()
|
||||
connection()->forgetRoom(id());
|
||||
}
|
||||
|
||||
QVariantList NeoChatRoom::getUsersTyping() const
|
||||
{
|
||||
auto members = membersTyping();
|
||||
members.removeAll(localMember());
|
||||
QVariantList userVariants;
|
||||
for (const auto &member : members) {
|
||||
if (connection()->isIgnored(member.id())) {
|
||||
continue;
|
||||
}
|
||||
userVariants.append(QVariantMap{
|
||||
{"id"_ls, member.id()},
|
||||
{"displayName"_ls, member.displayName()},
|
||||
});
|
||||
}
|
||||
return userVariants;
|
||||
}
|
||||
|
||||
void NeoChatRoom::sendTypingNotification(bool isTyping)
|
||||
{
|
||||
connection()->callApi<SetTypingJob>(BackgroundRequest, localMember().id(), id(), isTyping, 10000);
|
||||
|
||||
Reference in New Issue
Block a user