mirror of
https://gitlab.linphone.org/BC/public/linphone-iphone.git
synced 2026-05-07 05:53:06 +00:00
Remove observers before reloading grid/as participants of a conference
This commit is contained in:
parent
9581d88f09
commit
1c8fdb1924
2 changed files with 6 additions and 0 deletions
|
|
@ -90,6 +90,9 @@ class VoipConferenceActiveSpeakerView: UIView, UICollectionViewDataSource, UICol
|
|||
}
|
||||
|
||||
func reloadData() {
|
||||
conferenceViewModel?.conferenceParticipantDevices.value?.forEach {
|
||||
$0.clearObservers()
|
||||
}
|
||||
self.grid.reloadData()
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -174,6 +174,9 @@ class VoipConferenceGridView: UIView, UICollectionViewDataSource, UICollectionVi
|
|||
// UICollectionView related delegates
|
||||
|
||||
func reloadData() {
|
||||
conferenceViewModel?.conferenceParticipantDevices.value?.forEach {
|
||||
$0.clearObservers()
|
||||
}
|
||||
if (self.isHidden || conferenceViewModel?.conference.value?.call?.params?.conferenceVideoLayout != .Grid) {
|
||||
self.grid.reloadData()
|
||||
return
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue