File tree Expand file tree Collapse file tree 2 files changed +6
-6
lines changed Expand file tree Collapse file tree 2 files changed +6
-6
lines changed Original file line number Diff line number Diff line change @@ -390,7 +390,7 @@ class MessageItem extends StatelessWidget {
390
390
child: Column (children: [
391
391
DecoratedBox (
392
392
decoration: borderDecoration,
393
- child: MessageWithSender (item: item)),
393
+ child: MessageWithPossibleSender (item: item)),
394
394
if (trailing != null && item.isLastInBlock) trailing! ,
395
395
]));
396
396
@@ -561,9 +561,9 @@ class RecipientHeaderChevronContainer extends StatelessWidget {
561
561
}
562
562
}
563
563
564
- /// A Zulip message, showing the sender's name and avatar.
565
- class MessageWithSender extends StatelessWidget {
566
- const MessageWithSender ({super .key, required this .item});
564
+ /// A Zulip message, showing the sender's name and avatar if specified .
565
+ class MessageWithPossibleSender extends StatelessWidget {
566
+ const MessageWithPossibleSender ({super .key, required this .item});
567
567
568
568
final MessageListMessageItem item;
569
569
Original file line number Diff line number Diff line change @@ -254,7 +254,7 @@ void main() {
254
254
});
255
255
});
256
256
257
- group ('MessageWithSender ' , () {
257
+ group ('MessageWithPossibleSender ' , () {
258
258
testWidgets ('Updates avatar on RealmUserUpdateEvent' , (tester) async {
259
259
addTearDown (testBinding.reset);
260
260
@@ -263,7 +263,7 @@ void main() {
263
263
RealmContentNetworkImage ? findAvatarImageWidget (WidgetTester tester) {
264
264
return tester.widgetList <RealmContentNetworkImage >(
265
265
find.descendant (
266
- of: find.byType (MessageWithSender ),
266
+ of: find.byType (MessageWithPossibleSender ),
267
267
matching: find.byType (RealmContentNetworkImage ))).firstOrNull;
268
268
}
269
269
You can’t perform that action at this time.
0 commit comments