[MessageListView] simplify some conditions
Signed-off-by: Sahil Kumar <[email protected]>
This commit is contained in:
@@ -851,7 +851,7 @@ class _MessageListViewState extends State<MessageListView> {
|
|||||||
attachmentBorderRadiusGeometry: BorderRadius.only(
|
attachmentBorderRadiusGeometry: BorderRadius.only(
|
||||||
topLeft: Radius.circular(attachmentBorderRadius),
|
topLeft: Radius.circular(attachmentBorderRadius),
|
||||||
bottomLeft: Radius.circular(
|
bottomLeft: Radius.circular(
|
||||||
(timeDiff >= 1 || !isNextUserSame) && !hasReplies && !isThreadMessage
|
(timeDiff >= 1 || !isNextUserSame) && !(hasReplies || isThreadMessage)
|
||||||
? 0
|
? 0
|
||||||
: attachmentBorderRadius,
|
: attachmentBorderRadius,
|
||||||
),
|
),
|
||||||
@@ -862,7 +862,7 @@ class _MessageListViewState extends State<MessageListView> {
|
|||||||
borderRadiusGeometry: BorderRadius.only(
|
borderRadiusGeometry: BorderRadius.only(
|
||||||
topLeft: Radius.circular(16),
|
topLeft: Radius.circular(16),
|
||||||
bottomLeft: Radius.circular(
|
bottomLeft: Radius.circular(
|
||||||
(timeDiff >= 1 || !isNextUserSame) && !hasReplies && !isThreadMessage
|
(timeDiff >= 1 || !isNextUserSame) && !(hasReplies || isThreadMessage)
|
||||||
? 0
|
? 0
|
||||||
: 16,
|
: 16,
|
||||||
),
|
),
|
||||||
|
|||||||
Reference in New Issue
Block a user