diff --git a/lib/ui/widgets/mobile_mode/user_page_mobile.dart b/lib/ui/widgets/mobile_mode/user_page_mobile.dart index d8606fc..1ddcfad 100644 --- a/lib/ui/widgets/mobile_mode/user_page_mobile.dart +++ b/lib/ui/widgets/mobile_mode/user_page_mobile.dart @@ -5,6 +5,7 @@ import 'package:comunic/ui/routes/main_route/main_route.dart'; import 'package:comunic/ui/widgets/account_image_widget.dart'; import 'package:comunic/ui/widgets/post_create_form_widget.dart'; import 'package:comunic/ui/widgets/posts_list_widget.dart'; +import 'package:comunic/utils/account_utils.dart'; import 'package:comunic/utils/conversations_utils.dart'; import 'package:comunic/utils/intl_utils.dart'; import 'package:comunic/utils/ui_utils.dart'; @@ -51,13 +52,15 @@ class _UserMobilePageState extends State { ), Text(" ${_userInfo.displayName}"), Spacer(), - IconButton( - icon: Icon( - Icons.chat, - ), - onPressed: () { - openPrivateConversation(context, _userID); - }), + _userID == userID() + ? Container() + : IconButton( + icon: Icon( + Icons.chat, + ), + onPressed: () { + openPrivateConversation(context, _userID); + }), PopupMenuButton<_MenuOptions>( itemBuilder: (c) => [ PopupMenuItem(