1
0
mirror of https://gitlab.com/comunic/comunicmobile synced 2024-11-25 14:29:22 +00:00

Can start private conversation from user profile route

This commit is contained in:
Pierre HUBERT 2021-04-26 09:40:49 +02:00
parent f92846cb76
commit 3ea02ea98c

View File

@ -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<ForezMemberProfileRoute> {
],
),
),
actions: _user.id == userID()
? null
: [
IconButton(
icon: Icon(Icons.message),
onPressed: () => openPrivateConversation(context, _user.id))
],
);
Widget _buildList() => SliverList(