This commit is contained in:
Niels Andriesse 2021-08-05 16:20:35 +10:00
parent f3bc4673ef
commit 87cd3f1d5a
2 changed files with 5 additions and 2 deletions

View File

@ -236,11 +236,12 @@ class GroupCallViewController: UIViewController {
scrollView.isScrollEnabled = true
videoGrid.isHidden = false
let height = size.height - view.safeAreaInsets.top - (controlsAreHidden ? 16 : callControls.height()) - (hasOverflowMembers ? videoOverflow.height() + 32 : 0)
videoGrid.frame = CGRect(
x: 0,
y: view.safeAreaInsets.top,
width: size.width,
height: size.height - view.safeAreaInsets.top - (controlsAreHidden ? 16 : callControls.height) - (hasOverflowMembers ? videoOverflow.height + 32 : 0)
height: height
)
speakerPage.frame = CGRect(
x: 0,
@ -258,7 +259,7 @@ class GroupCallViewController: UIViewController {
func updateVideoOverflowTrailingConstraint() {
var trailingConstraintConstant = -(GroupCallVideoOverflow.itemHeight * ReturnToCallViewController.pipSize.aspectRatio + 4)
if view.width() + trailingConstraintConstant > videoOverflow.contentSize.width() {
if view.width() + trailingConstraintConstant > videoOverflow.contentSize.width {
trailingConstraintConstant += 16
}
videoOverflowTrailingConstraint.constant = trailingConstraintConstant

View File

@ -40,6 +40,7 @@ class UserNotificationConfig {
return UNNotificationAction(identifier: action.identifier,
title: CallStrings.showThreadButtonTitle,
options: [.foreground])
default: preconditionFailure() // TODO: Implement
}
}
@ -248,6 +249,7 @@ public class UserNotificationActionHandler: NSObject {
return try actionHandler.reply(userInfo: userInfo, replyText: textInputResponse.userText)
case .showThread:
return try actionHandler.showThread(userInfo: userInfo)
default: preconditionFailure() // TODO: Implement
}
}
}