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/account_image_widget.dart';
|
||||||
import 'package:comunic/ui/widgets/post_create_form_widget.dart';
|
import 'package:comunic/ui/widgets/post_create_form_widget.dart';
|
||||||
import 'package:comunic/ui/widgets/posts_list_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/conversations_utils.dart';
|
||||||
import 'package:comunic/utils/intl_utils.dart';
|
import 'package:comunic/utils/intl_utils.dart';
|
||||||
import 'package:comunic/utils/ui_utils.dart';
|
import 'package:comunic/utils/ui_utils.dart';
|
||||||
@ -51,13 +52,15 @@ class _UserMobilePageState extends State<UserMobilePage> {
|
|||||||
),
|
),
|
||||||
Text(" ${_userInfo.displayName}"),
|
Text(" ${_userInfo.displayName}"),
|
||||||
Spacer(),
|
Spacer(),
|
||||||
IconButton(
|
_userID == userID()
|
||||||
icon: Icon(
|
? Container()
|
||||||
Icons.chat,
|
: IconButton(
|
||||||
),
|
icon: Icon(
|
||||||
onPressed: () {
|
Icons.chat,
|
||||||
openPrivateConversation(context, _userID);
|
),
|
||||||
}),
|
onPressed: () {
|
||||||
|
openPrivateConversation(context, _userID);
|
||||||
|
}),
|
||||||
PopupMenuButton<_MenuOptions>(
|
PopupMenuButton<_MenuOptions>(
|
||||||
itemBuilder: (c) => [
|
itemBuilder: (c) => [
|
||||||
PopupMenuItem(
|
PopupMenuItem(
|
||||||
|
Loading…
Reference in New Issue
Block a user