From 85aaf9eab89bc1dd1c1191166d370fc18fdaa3d9 Mon Sep 17 00:00:00 2001 From: Sahil Kumar Date: Tue, 12 Jan 2021 15:05:50 +0530 Subject: [PATCH] [MessageListView] simplify some conditions Signed-off-by: Sahil Kumar --- lib/src/message_list_view.dart | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/src/message_list_view.dart b/lib/src/message_list_view.dart index ba9c499e..6f61e261 100644 --- a/lib/src/message_list_view.dart +++ b/lib/src/message_list_view.dart @@ -851,7 +851,7 @@ class _MessageListViewState extends State { attachmentBorderRadiusGeometry: BorderRadius.only( topLeft: Radius.circular(attachmentBorderRadius), bottomLeft: Radius.circular( - (timeDiff >= 1 || !isNextUserSame) && !hasReplies && !isThreadMessage + (timeDiff >= 1 || !isNextUserSame) && !(hasReplies || isThreadMessage) ? 0 : attachmentBorderRadius, ), @@ -862,7 +862,7 @@ class _MessageListViewState extends State { borderRadiusGeometry: BorderRadius.only( topLeft: Radius.circular(16), bottomLeft: Radius.circular( - (timeDiff >= 1 || !isNextUserSame) && !hasReplies && !isThreadMessage + (timeDiff >= 1 || !isNextUserSame) && !(hasReplies || isThreadMessage) ? 0 : 16, ),