mirror of
https://gitlab.com/comunic/comunicmobile
synced 2024-11-25 22:39:22 +00:00
Do not offer to open private conversation on user page
This commit is contained in:
parent
9697ba8149
commit
ef0ae2a586
@ -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<UserMobilePage> {
|
||||
),
|
||||
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(
|
||||
|
Loading…
Reference in New Issue
Block a user