This commit is contained in:
Christian Pauly 2020-01-18 13:27:36 +01:00
parent 2b312ff74d
commit d0350963cb
3 changed files with 7 additions and 2 deletions

View file

@ -1,5 +1,7 @@
# Version 0.4.0 - 2020-MM-DD # Version 0.4.0 - 2020-MM-DD
### New features ### New features
- Avatars with name letters
- Calc username colors
### Fixes ### Fixes
# Version 0.3.0 - 2020-01-17 # Version 0.3.0 - 2020-01-17

View file

@ -164,7 +164,10 @@ class _ChatState extends State<Chat> {
typingUsers.removeWhere((User u) => u.id == client.userID); typingUsers.removeWhere((User u) => u.id == client.userID);
if (typingUsers.length == 1) { 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) { } else if (typingUsers.length == 2) {
typingText = typingText =
"${typingUsers.first.calcDisplayname()} and ${typingUsers[1].calcDisplayname()} are typing..."; "${typingUsers.first.calcDisplayname()} and ${typingUsers[1].calcDisplayname()} are typing...";

View file

@ -214,7 +214,7 @@ class _ChatDetailsState extends State<ChatDetails> {
: Container(), : Container(),
], ],
) )
: i < members.length + 1 && false : i < members.length + 1
? ParticipantListItem(members[i - 1]) ? ParticipantListItem(members[i - 1])
: ListTile( : ListTile(
title: Text( title: Text(