chore: Hide call button for group chats

This commit is contained in:
Krille Fear 2022-02-17 21:38:37 +01:00
parent 2cf9ba2cff
commit fca9175089

View File

@ -113,7 +113,8 @@ class ChatView extends StatelessWidget {
]; ];
} else { } else {
return [ return [
if (Matrix.of(context).webrtcIsSupported) if (Matrix.of(context).webrtcIsSupported &&
controller.room!.isDirectChat)
IconButton( IconButton(
onPressed: controller.onPhoneButtonTap, onPressed: controller.onPhoneButtonTap,
icon: const Icon(Icons.call_outlined), icon: const Icon(Icons.call_outlined),