chore: Better display rooms without known messages
This commit is contained in:
parent
b40b0eda57
commit
45331c1812
2 changed files with 6 additions and 6 deletions
|
|
@ -3374,5 +3374,6 @@
|
|||
"moreEvents": "More events",
|
||||
"@moreEvents": {},
|
||||
"declineInvitation": "Decline invitation",
|
||||
"@declineInvitation": {}
|
||||
"@declineInvitation": {},
|
||||
"noMessagesYet": "No messages yet"
|
||||
}
|
||||
|
|
|
|||
|
|
@ -202,13 +202,12 @@ class ChatListItem extends StatelessWidget {
|
|||
color: theme.colorScheme.primary,
|
||||
),
|
||||
),
|
||||
if (!room.isSpace &&
|
||||
lastEvent != null &&
|
||||
room.membership != Membership.invite)
|
||||
if (!room.isSpace && room.membership != Membership.invite)
|
||||
Padding(
|
||||
padding: const EdgeInsets.only(left: 4.0),
|
||||
child: Text(
|
||||
lastEvent.originServerTs.localizedTimeShort(context),
|
||||
room.latestEventReceivedTime
|
||||
.localizedTimeShort(context),
|
||||
style: TextStyle(
|
||||
fontSize: 12,
|
||||
color: theme.colorScheme.outline,
|
||||
|
|
@ -303,7 +302,7 @@ class ChatListItem extends StatelessWidget {
|
|||
: L10n.of(context)
|
||||
.inviteGroupChat)
|
||||
: snapshot.data ??
|
||||
L10n.of(context).emptyChat,
|
||||
L10n.of(context).noMessagesYet,
|
||||
softWrap: false,
|
||||
maxLines: room.notificationCount >= 1 ? 2 : 1,
|
||||
overflow: TextOverflow.ellipsis,
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue