Skip to content

Commit

Permalink
add placeholder for unknown users
Browse files Browse the repository at this point in the history
  • Loading branch information
mofirojean committed Oct 19, 2024
1 parent 48bc6ab commit d5f8afe
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion lib/widgets/profile.dart
Original file line number Diff line number Diff line change
Expand Up @@ -290,8 +290,9 @@ class _UserWidget extends StatelessWidget {
@override
Widget build(BuildContext context) {
final store = PerAccountStoreWidget.of(context);
final zulipLocalizations = ZulipLocalizations.of(context);
final user = store.users[userId];
final fullName = user?.fullName ?? '(unknown user)';
final fullName = user?.fullName ?? zulipLocalizations.unknownUserName;
return InkWell(
onTap: () => Navigator.push(context,
ProfilePage.buildRoute(context: context,
Expand Down

0 comments on commit d5f8afe

Please sign in to comment.