Skip to content

Commit

Permalink
MEET-4517: Fix crash by checking implicit optional
Browse files Browse the repository at this point in the history
  • Loading branch information
tomekkuzma-mega committed Oct 24, 2024
1 parent 5322cbc commit 0c62b81
Showing 1 changed file with 10 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -175,13 +175,18 @@ final class MeetingFloatingPanelViewController: UIViewController {
isMeeting: Bool,
allowNonHostToAddParticipantsEnabled: Bool,
isMyselfAModerator: Bool) {

// checking if the implicitly unwrapped optional are loaded from XIBS yet [MEET-4517]
if isOneToOneCall {
optionsStackView.arrangedSubviews.forEach({ $0.removeFromSuperview() })
optionsStackViewHeightConstraint.constant = 0.0
if optionsStackView != nil {
optionsStackView.arrangedSubviews.forEach({ $0.removeFromSuperview() })
}
if optionsStackViewHeightConstraint != nil {
optionsStackViewHeightConstraint.constant = 0.0
}
}
if shareLinkLabel != nil {
shareLinkLabel.text = isMeeting ? Strings.Localizable.Meetings.Action.shareLink : Strings.Localizable.Meetings.Panel.shareLink
}
shareLinkLabel.text = isMeeting ? Strings.Localizable.Meetings.Action.shareLink : Strings.Localizable.Meetings.Panel.shareLink

isAllowNonHostToAddParticipantsEnabled = allowNonHostToAddParticipantsEnabled
}
}
Expand Down

0 comments on commit 0c62b81

Please sign in to comment.