diff --git a/lib/forez/ui/routes/forez_member_profile_route.dart b/lib/forez/ui/routes/forez_member_profile_route.dart index 581ad55..8c0f662 100644 --- a/lib/forez/ui/routes/forez_member_profile_route.dart +++ b/lib/forez/ui/routes/forez_member_profile_route.dart @@ -9,6 +9,8 @@ import 'package:comunic/ui/widgets/async_screen_widget.dart'; import 'package:comunic/ui/widgets/copy_icon.dart'; import 'package:comunic/ui/widgets/forez_presence_calendar_widget.dart'; import 'package:comunic/ui/widgets/text_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'; import 'package:flutter/material.dart'; @@ -115,6 +117,13 @@ class _ForezMemberProfileRouteState extends State { ], ), ), + actions: _user.id == userID() + ? null + : [ + IconButton( + icon: Icon(Icons.message), + onPressed: () => openPrivateConversation(context, _user.id)) + ], ); Widget _buildList() => SliverList(