update unread count

This commit is contained in:
Salvatore Giordano
2020-12-31 16:25:11 +01:00
parent 2d36d08fc4
commit 7f2dadb60d
+6 -5
View File
@@ -813,12 +813,13 @@ class _MessageWidgetState extends State<MessageWidget> {
if (isMessageRead) {
child = Row(
children: [
Text(
widget.readList.length.toString(),
style: style.copyWith(
color: StreamChatTheme.of(context).colorTheme.accentBlue,
if (StreamChannel.of(context).channel.memberCount > 2)
Text(
widget.readList.length.toString(),
style: style.copyWith(
color: StreamChatTheme.of(context).colorTheme.accentBlue,
),
),
),
SizedBox(width: 2),
child,
],