File tree 1 file changed +6
-2
lines changed
1 file changed +6
-2
lines changed Original file line number Diff line number Diff line change @@ -263,6 +263,8 @@ class _UserWidget extends StatelessWidget {
263
263
@override
264
264
Widget build (BuildContext context) {
265
265
final store = PerAccountStoreWidget .of (context);
266
+ final localizations = ZulipLocalizations .of (context);
267
+ final isMuted = store.isUserMuted (userId);
266
268
return InkWell (
267
269
onTap: () => Navigator .push (context,
268
270
ProfilePage .buildRoute (context: context,
@@ -271,10 +273,12 @@ class _UserWidget extends StatelessWidget {
271
273
padding: const EdgeInsets .all (8 ),
272
274
child: Row (children: [
273
275
// TODO(#196) render active status
274
- Avatar (userId: userId, size: 32 , borderRadius: 32 / 8 ),
276
+ Avatar (userId: userId, size: 32 , borderRadius: 32 / 8 ,
277
+ showAsMuted: isMuted),
275
278
const SizedBox (width: 8 ),
276
279
Expanded (
277
- child: Text (store.userDisplayName (userId),
280
+ child: Text (
281
+ isMuted ? localizations.mutedUser : store.userDisplayName (userId),
278
282
style: _TextStyles .customProfileFieldText)),
279
283
])));
280
284
}
You can’t perform that action at this time.
0 commit comments