Skip to content

Commit cff80a0

Browse files
committed
Fix pip when no one else is in the call
1 parent ebe9b4d commit cff80a0

File tree

3 files changed

+15
-1
lines changed

3 files changed

+15
-1
lines changed

Signal/Signal-Info.plist

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
<key>OSXVersion</key>
88
<string>10.15.7</string>
99
<key>WebRTCCommit</key>
10-
<string>5479e22bf635262239cf4f2f530af14734db76b8 Production build of v2.8.7</string>
10+
<string>d9faa1be9ef6996232977b0ee713efa024c0df9d Production build of v2.8.8</string>
1111
</dict>
1212
<key>CFBundleDevelopmentRegion</key>
1313
<string>en</string>

Signal/src/Calls/UserInterface/Group/GroupCallMemberView.swift

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -387,6 +387,18 @@ class GroupCallRemoteMemberView: GroupCallMemberView {
387387
}
388388
}
389389

390+
func clearConfiguration() {
391+
deferredReconfigTimer?.invalidate()
392+
393+
cleanupVideoViews()
394+
395+
noVideoView.backgroundColor = .ows_black
396+
backgroundAvatarView.image = nil
397+
avatarView.image = nil
398+
399+
[errorView, spinner, muteIndicatorImage].forEach { $0.isHidden = true }
400+
}
401+
390402
private func updateDimensions() {
391403
guard hasBeenConfigured else { return }
392404
videoView?.frame = bounds

Signal/src/Calls/UserInterface/Group/GroupCallViewController.swift

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -350,6 +350,8 @@ class GroupCallViewController: UIViewController {
350350
call: call,
351351
device: speakerState
352352
)
353+
} else {
354+
speakerView.clearConfiguration()
353355
}
354356

355357
// Setting the speakerphone before we join the call will fail,

0 commit comments

Comments
 (0)