Skip to content

Commit edba01f

Browse files
committed
poll: Distinguish muted users in polls
1 parent 3e8a094 commit edba01f

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

lib/widgets/poll.dart

+4-1
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,10 @@ class _PollWidgetState extends State<PollWidget> {
8080
// new Intl.ListFormat('ja').format(['Chris', 'Greg', 'Alya', 'Zixuan'])
8181
// // 'Chris、Greg、Alya、Zixuan'
8282
final voterNames = option.voters
83-
.map(store.userDisplayName)
83+
.map((userId) =>
84+
store.isUserMuted(userId)
85+
? zulipLocalizations.mutedUser
86+
: store.userDisplayName(userId))
8487
.join(', ');
8588

8689
return Row(

0 commit comments

Comments
 (0)