From fca917508911ffaf6806f507f371473e6ebf16b6 Mon Sep 17 00:00:00 2001 From: Krille Fear Date: Thu, 17 Feb 2022 21:38:37 +0100 Subject: [PATCH] chore: Hide call button for group chats --- lib/pages/chat/chat_view.dart | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lib/pages/chat/chat_view.dart b/lib/pages/chat/chat_view.dart index b443f90b..6b103899 100644 --- a/lib/pages/chat/chat_view.dart +++ b/lib/pages/chat/chat_view.dart @@ -113,7 +113,8 @@ class ChatView extends StatelessWidget { ]; } else { return [ - if (Matrix.of(context).webrtcIsSupported) + if (Matrix.of(context).webrtcIsSupported && + controller.room!.isDirectChat) IconButton( onPressed: controller.onPhoneButtonTap, icon: const Icon(Icons.call_outlined),