File tree Expand file tree Collapse file tree 1 file changed +5
-4
lines changed Expand file tree Collapse file tree 1 file changed +5
-4
lines changed Original file line number Diff line number Diff line change @@ -451,14 +451,15 @@ mixin _MessageSequence {
451
451
items.add (MessageListRecipientHeaderItem (message));
452
452
canShareSender = false ;
453
453
} else {
454
+ assert (items.last is MessageListMessageBaseItem );
455
+ final prevMessageItem = items.last as MessageListMessageBaseItem ;
456
+ assert (identical (prevMessageItem.message, prevMessage));
457
+ assert (prevMessageItem.isLastInBlock);
458
+
454
459
if (oneMessagePerBlock || ! haveSameRecipient (prevMessage, message)) {
455
460
items.add (MessageListRecipientHeaderItem (message));
456
461
canShareSender = false ;
457
462
} else {
458
- assert (items.last is MessageListMessageBaseItem );
459
- final prevMessageItem = items.last as MessageListMessageBaseItem ;
460
- assert (identical (prevMessageItem.message, prevMessage));
461
- assert (prevMessageItem.isLastInBlock);
462
463
prevMessageItem.isLastInBlock = false ;
463
464
464
465
if (! messagesSameDay (prevMessageItem.message, message)) {
You can’t perform that action at this time.
0 commit comments