Clean up
This commit is contained in:
parent
2b312ff74d
commit
d0350963cb
3 changed files with 7 additions and 2 deletions
|
|
@ -164,7 +164,10 @@ class _ChatState extends State<Chat> {
|
|||
typingUsers.removeWhere((User u) => u.id == client.userID);
|
||||
|
||||
if (typingUsers.length == 1) {
|
||||
typingText = "${typingUsers.first.calcDisplayname()} is typing...";
|
||||
typingText = "is typing...";
|
||||
if (typingUsers.first.id != room.directChatMatrixID) {
|
||||
typingText = typingUsers.first.calcDisplayname() + " " + typingText;
|
||||
}
|
||||
} else if (typingUsers.length == 2) {
|
||||
typingText =
|
||||
"${typingUsers.first.calcDisplayname()} and ${typingUsers[1].calcDisplayname()} are typing...";
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue