File tree 1 file changed +10
-5
lines changed
iMEGA/CallScene/FloatingPanel
1 file changed +10
-5
lines changed Original file line number Diff line number Diff line change @@ -175,13 +175,18 @@ final class MeetingFloatingPanelViewController: UIViewController {
175
175
isMeeting: Bool ,
176
176
allowNonHostToAddParticipantsEnabled: Bool ,
177
177
isMyselfAModerator: Bool ) {
178
-
178
+ // checking if the implicitly unwrapped optional are loaded from XIBS yet [MEET-4517]
179
179
if isOneToOneCall {
180
- optionsStackView. arrangedSubviews. forEach ( { $0. removeFromSuperview ( ) } )
181
- optionsStackViewHeightConstraint. constant = 0.0
180
+ if optionsStackView != nil {
181
+ optionsStackView. arrangedSubviews. forEach ( { $0. removeFromSuperview ( ) } )
182
+ }
183
+ if optionsStackViewHeightConstraint != nil {
184
+ optionsStackViewHeightConstraint. constant = 0.0
185
+ }
186
+ }
187
+ if shareLinkLabel != nil {
188
+ shareLinkLabel. text = isMeeting ? Strings . Localizable. Meetings. Action. shareLink : Strings . Localizable. Meetings. Panel. shareLink
182
189
}
183
- shareLinkLabel. text = isMeeting ? Strings . Localizable. Meetings. Action. shareLink : Strings . Localizable. Meetings. Panel. shareLink
184
-
185
190
isAllowNonHostToAddParticipantsEnabled = allowNonHostToAddParticipantsEnabled
186
191
}
187
192
}
You can’t perform that action at this time.
0 commit comments