File tree 1 file changed +6
-1
lines changed
1 file changed +6
-1
lines changed Original file line number Diff line number Diff line change 1
1
import 'package:flutter/material.dart' ;
2
2
3
+ import '../generated/l10n/zulip_localizations.dart' ;
3
4
import '../model/narrow.dart' ;
4
5
import '../model/recent_dm_conversations.dart' ;
5
6
import '../model/unreads.dart' ;
@@ -79,6 +80,7 @@ class RecentDmConversationsItem extends StatelessWidget {
79
80
@override
80
81
Widget build (BuildContext context) {
81
82
final store = PerAccountStoreWidget .of (context);
83
+ final localizations = ZulipLocalizations .of (context);
82
84
final designVariables = DesignVariables .of (context);
83
85
84
86
final String title;
@@ -97,7 +99,10 @@ class RecentDmConversationsItem extends StatelessWidget {
97
99
// TODO(i18n): List formatting, like you can do in JavaScript:
98
100
// new Intl.ListFormat('ja').format(['Chris', 'Greg', 'Alya'])
99
101
// // 'Chris、Greg、Alya'
100
- title = narrow.otherRecipientIds.map (store.userDisplayName)
102
+ title = narrow.otherRecipientIds.map ((id) =>
103
+ store.isUserMuted (id)
104
+ ? localizations.mutedUser
105
+ : store.userDisplayName (id))
101
106
.join (', ' );
102
107
avatar = ColoredBox (color: designVariables.groupDmConversationIconBg,
103
108
child: Center (
You can’t perform that action at this time.
0 commit comments