WIP
This commit is contained in:
parent
f3bc4673ef
commit
87cd3f1d5a
|
@ -236,11 +236,12 @@ class GroupCallViewController: UIViewController {
|
||||||
|
|
||||||
scrollView.isScrollEnabled = true
|
scrollView.isScrollEnabled = true
|
||||||
videoGrid.isHidden = false
|
videoGrid.isHidden = false
|
||||||
|
let height = size.height - view.safeAreaInsets.top - (controlsAreHidden ? 16 : callControls.height()) - (hasOverflowMembers ? videoOverflow.height() + 32 : 0)
|
||||||
videoGrid.frame = CGRect(
|
videoGrid.frame = CGRect(
|
||||||
x: 0,
|
x: 0,
|
||||||
y: view.safeAreaInsets.top,
|
y: view.safeAreaInsets.top,
|
||||||
width: size.width,
|
width: size.width,
|
||||||
height: size.height - view.safeAreaInsets.top - (controlsAreHidden ? 16 : callControls.height) - (hasOverflowMembers ? videoOverflow.height + 32 : 0)
|
height: height
|
||||||
)
|
)
|
||||||
speakerPage.frame = CGRect(
|
speakerPage.frame = CGRect(
|
||||||
x: 0,
|
x: 0,
|
||||||
|
@ -258,7 +259,7 @@ class GroupCallViewController: UIViewController {
|
||||||
|
|
||||||
func updateVideoOverflowTrailingConstraint() {
|
func updateVideoOverflowTrailingConstraint() {
|
||||||
var trailingConstraintConstant = -(GroupCallVideoOverflow.itemHeight * ReturnToCallViewController.pipSize.aspectRatio + 4)
|
var trailingConstraintConstant = -(GroupCallVideoOverflow.itemHeight * ReturnToCallViewController.pipSize.aspectRatio + 4)
|
||||||
if view.width() + trailingConstraintConstant > videoOverflow.contentSize.width() {
|
if view.width() + trailingConstraintConstant > videoOverflow.contentSize.width {
|
||||||
trailingConstraintConstant += 16
|
trailingConstraintConstant += 16
|
||||||
}
|
}
|
||||||
videoOverflowTrailingConstraint.constant = trailingConstraintConstant
|
videoOverflowTrailingConstraint.constant = trailingConstraintConstant
|
||||||
|
|
|
@ -40,6 +40,7 @@ class UserNotificationConfig {
|
||||||
return UNNotificationAction(identifier: action.identifier,
|
return UNNotificationAction(identifier: action.identifier,
|
||||||
title: CallStrings.showThreadButtonTitle,
|
title: CallStrings.showThreadButtonTitle,
|
||||||
options: [.foreground])
|
options: [.foreground])
|
||||||
|
default: preconditionFailure() // TODO: Implement
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -248,6 +249,7 @@ public class UserNotificationActionHandler: NSObject {
|
||||||
return try actionHandler.reply(userInfo: userInfo, replyText: textInputResponse.userText)
|
return try actionHandler.reply(userInfo: userInfo, replyText: textInputResponse.userText)
|
||||||
case .showThread:
|
case .showThread:
|
||||||
return try actionHandler.showThread(userInfo: userInfo)
|
return try actionHandler.showThread(userInfo: userInfo)
|
||||||
|
default: preconditionFailure() // TODO: Implement
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue