Skip to content

Commit 85bc0ff

Browse files
committed
msglist: Add star marker in messages
1 parent 4d352bb commit 85bc0ff

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

lib/widgets/message_list.dart

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -847,7 +847,12 @@ class MessageWithPossibleSender extends StatelessWidget {
847847
if ((message.reactions?.total ?? 0) > 0)
848848
ReactionChipsList(messageId: message.id, reactions: message.reactions!)
849849
])),
850-
const SizedBox(width: 16),
850+
SizedBox(width: 16,
851+
child: message.flags.contains(MessageFlag.starred)
852+
? Icon(ZulipIcons.star,
853+
size: 16,
854+
color: const HSLColor.fromAHSL(0.5, 47, 1, 0.41).toColor())
855+
: const SizedBox.shrink()),
851856
])),
852857
],
853858
));

0 commit comments

Comments
 (0)