diff --git a/lib/widgets/message_list.dart b/lib/widgets/message_list.dart index b8fcf3adbec..86218eb1177 100644 --- a/lib/widgets/message_list.dart +++ b/lib/widgets/message_list.dart @@ -361,8 +361,23 @@ class MessageListAppBarTitle extends StatelessWidget { if (otherRecipientIds.isEmpty) { return const Text("DMs with yourself"); } else { - final names = otherRecipientIds.map((id) => store.users[id]?.fullName ?? '(unknown user)'); - return Text("DMs with ${names.join(", ")}"); // TODO show avatars + return Row( + children: [ + ...otherRecipientIds.map((id) => + Padding( + padding: const EdgeInsets.only(right: 8), + child: Avatar(size: 35, borderRadius: 32 / 8, userId: id), + )), + Expanded( + child: Text( + otherRecipientIds + .map((id) => store.users[id]?.fullName ?? '(unknown user)') + .join(", "), + overflow: TextOverflow.ellipsis, + ), + ) + ] + ); } } }