Skip to content

Commit

Permalink
fix: last sender display name null safety
Browse files Browse the repository at this point in the history
  • Loading branch information
Julian KOUNE authored and hoangdat committed Oct 2, 2023
1 parent 570f673 commit 56048be
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/pages/chat_list/chat_list_item_mixin.dart
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ mixin ChatListItemMixin {
builder: (context, snapshot) {
if (snapshot.data == null) return const SizedBox.shrink();
return Text(
snapshot.data!.displayName!,
snapshot.data!.calcDisplayname(),
overflow: TextOverflow.ellipsis,
maxLines: 1,
softWrap: false,
Expand Down

0 comments on commit 56048be

Please sign in to comment.