Skip to content

Commit d5f8afe

Browse files
committed
add placeholder for unknown users
1 parent 48bc6ab commit d5f8afe

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

lib/widgets/profile.dart

+2-1
Original file line numberDiff line numberDiff line change
@@ -290,8 +290,9 @@ class _UserWidget extends StatelessWidget {
290290
@override
291291
Widget build(BuildContext context) {
292292
final store = PerAccountStoreWidget.of(context);
293+
final zulipLocalizations = ZulipLocalizations.of(context);
293294
final user = store.users[userId];
294-
final fullName = user?.fullName ?? '(unknown user)';
295+
final fullName = user?.fullName ?? zulipLocalizations.unknownUserName;
295296
return InkWell(
296297
onTap: () => Navigator.push(context,
297298
ProfilePage.buildRoute(context: context,

0 commit comments

Comments
 (0)