mirror of
https://github.com/Novaloop-AG/element-x-ios.git
synced 2026-11-04 19:11:45 +00:00
Don't show the call button on macOS (#2064)
Calls don't work in the web view on macOS.
This commit is contained in:
@@ -155,10 +155,12 @@ struct RoomScreen: View {
|
|||||||
RoomHeaderView(context: context)
|
RoomHeaderView(context: context)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if !ProcessInfo.processInfo.isiOSAppOnMac {
|
||||||
ToolbarItem(placement: .primaryAction) {
|
ToolbarItem(placement: .primaryAction) {
|
||||||
callButton
|
callButton
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
@ViewBuilder
|
@ViewBuilder
|
||||||
private var callButton: some View {
|
private var callButton: some View {
|
||||||
|
|||||||
@@ -0,0 +1 @@
|
|||||||
|
Don't show the call button on macOS.
|
||||||
Reference in New Issue
Block a user