@@ -126,7 +126,7 @@ private func mappedInsertEntries(context: AccountContext, presentationData: Item
126126 case let . displayTabInfo( _, text) :
127127 return ListViewInsertItem ( index: entry. index, previousIndex: entry. previousIndex, item: ItemListTextItem ( presentationData: presentationData, text: . plain( text) , sectionId: 0 ) , directionHint: entry. directionHint)
128128 case . openNewCall:
129- let item = ItemListPeerActionItem ( presentationData: presentationData, style: showSettings ? . blocks : . plain, icon: PresentationResourcesRootController . callListCallIcon ( presentationData. theme) , title: presentationData. strings. CallList_NewCall, hasSeparator: false , sectionId: 1 , height: . generic, noInsets: true , editing: false , action: {
129+ let item = ItemListPeerActionItem ( presentationData: presentationData, style: showSettings ? . blocks : . plain, icon: PresentationResourcesRootController . callListCallIcon ( presentationData. theme) , title: presentationData. strings. CallList_NewCall, hasSeparator: false , sectionId: 1 , height: . generic, noInsets: !showSettings , editing: false , action: {
130130 nodeInteraction. openNewCall ( )
131131 } )
132132 return ListViewInsertItem ( index: entry. index, previousIndex: entry. previousIndex, item: item, directionHint: entry. directionHint)
@@ -150,7 +150,7 @@ private func mappedUpdateEntries(context: AccountContext, presentationData: Item
150150 case let . displayTabInfo( _, text) :
151151 return ListViewUpdateItem ( index: entry. index, previousIndex: entry. previousIndex, item: ItemListTextItem ( presentationData: presentationData, text: . plain( text) , sectionId: 0 ) , directionHint: entry. directionHint)
152152 case . openNewCall:
153- let item = ItemListPeerActionItem ( presentationData: presentationData, style: showSettings ? . blocks : . plain, icon: PresentationResourcesRootController . callListCallIcon ( presentationData. theme) , title: presentationData. strings. CallList_NewCall, hasSeparator: false , sectionId: 1 , height: . generic, noInsets: true , editing: false , action: {
153+ let item = ItemListPeerActionItem ( presentationData: presentationData, style: showSettings ? . blocks : . plain, icon: PresentationResourcesRootController . callListCallIcon ( presentationData. theme) , title: presentationData. strings. CallList_NewCall, hasSeparator: false , sectionId: 1 , height: . generic, noInsets: !showSettings , editing: false , action: {
154154 nodeInteraction. openNewCall ( )
155155 } )
156156 return ListViewUpdateItem ( index: entry. index, previousIndex: entry. previousIndex, item: item, directionHint: entry. directionHint)
@@ -525,7 +525,7 @@ final class CallListControllerNode: ASDisplayNode {
525525 |> mapToQueue { ( updateAndType, state, groupCalls, showCallsTab, currentGroupCallPeerId) -> Signal < CallListNodeListViewTransition , NoError > in
526526 let ( update, type) = updateAndType
527527
528- let processedView = CallListNodeView ( originalView: update. view, filteredEntries: callListNodeEntriesForView ( view: update. view, displayOpenNewCall: mode == . tab && type == . all, groupCalls: groupCalls, state: state, showSettings: showSettings, showCallsTab: showCallsTab, isRecentCalls: type == . all, currentGroupCallPeerId: currentGroupCallPeerId) , presentationData: state. presentationData)
528+ let processedView = CallListNodeView ( originalView: update. view, filteredEntries: callListNodeEntriesForView ( view: update. view, displayOpenNewCall: type == . all, groupCalls: groupCalls, state: state, showSettings: showSettings, showCallsTab: showCallsTab, isRecentCalls: type == . all, currentGroupCallPeerId: currentGroupCallPeerId) , presentationData: state. presentationData)
529529 let previous = previousView. swap ( processedView)
530530 let previousType = previousType. swap ( type)
531531
0 commit comments