simplify check for no typing users

This commit is contained in:
Jussi Kuokkanen 2020-09-17 17:50:39 +03:00
parent 7d72356318
commit c463568031
1 changed files with 1 additions and 2 deletions

View File

@ -439,8 +439,7 @@ Page {
Connections {
target: chat.model
onTypingUsersChanged: {
if (chat.model && chat.model.formatTypingUsers(chat.model.typingUsers,
colors.window) === "")
if (chat.model && chat.model.typingUsers < 1)
typingRect.color = "transparent"
else
typingRect.color = colors.window