Fix theme

This commit is contained in:
Ali 2021-01-01 20:19:41 +04:00
parent b42d5b9ac5
commit bf3e52f80d

View File

@ -1311,7 +1311,8 @@ public final class VoiceChatController: ViewController {
switch entry { switch entry {
case let .peer(peerEntry): case let .peer(peerEntry):
if peerEntry.ssrc == source { if peerEntry.ssrc == source {
strongSelf.listNode.transaction(deleteIndices: [], insertIndicesAndItems: [], updateIndicesAndItems: [ListViewUpdateItem(index: i, previousIndex: i, item: entry.item(context: strongSelf.context, presentationData: strongSelf.presentationData, interaction: strongSelf.itemInteraction!), directionHint: nil)], options: [.Synchronous], updateOpaqueState: nil) let presentationData = strongSelf.presentationData.withUpdated(theme: strongSelf.darkTheme)
strongSelf.listNode.transaction(deleteIndices: [], insertIndicesAndItems: [], updateIndicesAndItems: [ListViewUpdateItem(index: i, previousIndex: i, item: entry.item(context: strongSelf.context, presentationData: presentationData, interaction: strongSelf.itemInteraction!), directionHint: nil)], options: [.Synchronous], updateOpaqueState: nil)
break loop break loop
} }
default: default:
@ -1332,7 +1333,8 @@ public final class VoiceChatController: ViewController {
switch entry { switch entry {
case let .peer(peerEntry): case let .peer(peerEntry):
if peerEntry.ssrc == strongSelf.videoNodes[i].0 { if peerEntry.ssrc == strongSelf.videoNodes[i].0 {
strongSelf.listNode.transaction(deleteIndices: [], insertIndicesAndItems: [], updateIndicesAndItems: [ListViewUpdateItem(index: i, previousIndex: i, item: entry.item(context: strongSelf.context, presentationData: strongSelf.presentationData, interaction: strongSelf.itemInteraction!), directionHint: nil)], options: [.Synchronous], updateOpaqueState: nil) let presentationData = strongSelf.presentationData.withUpdated(theme: strongSelf.darkTheme)
strongSelf.listNode.transaction(deleteIndices: [], insertIndicesAndItems: [], updateIndicesAndItems: [ListViewUpdateItem(index: i, previousIndex: i, item: entry.item(context: strongSelf.context, presentationData: presentationData, interaction: strongSelf.itemInteraction!), directionHint: nil)], options: [.Synchronous], updateOpaqueState: nil)
break loop break loop
} }
default: default: