IOS-1495 missing weak in delegate of EmailListViewModel IOS-1521+IOS-1495
authorXavier Algarra <xavier@pep-project.org>
Fri, 17 May 2019 12:44:32 +0200
branchIOS-1521+IOS-1495
changeset 8664cd35355e45b6
parent 8663 c91c1cbd1566
child 8665 eedb3a924587
IOS-1495 missing weak in delegate of EmailListViewModel
pEpForiOS/UI/EmailDisplayList/EmailListViewModel.swift
     1.1 --- a/pEpForiOS/UI/EmailDisplayList/EmailListViewModel.swift	Fri May 17 12:43:49 2019 +0200
     1.2 +++ b/pEpForiOS/UI/EmailDisplayList/EmailListViewModel.swift	Fri May 17 12:44:32 2019 +0200
     1.3 @@ -11,7 +11,7 @@
     1.4  import MessageModel
     1.5  import PEPObjCAdapterFramework
     1.6  
     1.7 -protocol EmailListViewModelDelegate: TableViewUpdate {
     1.8 +protocol EmailListViewModelDelegate: class, TableViewUpdate {
     1.9      func emailListViewModel(viewModel: EmailListViewModel, didInsertDataAt indexPaths: [IndexPath])
    1.10      func emailListViewModel(viewModel: EmailListViewModel, didUpdateDataAt indexPaths: [IndexPath])
    1.11      func emailListViewModel(viewModel: EmailListViewModel,
    1.12 @@ -52,7 +52,7 @@
    1.13      var lastSearchTerm = ""
    1.14      var updatesEnabled = true
    1.15  
    1.16 -    public var emailListViewModelDelegate: EmailListViewModelDelegate?
    1.17 +    public weak var emailListViewModelDelegate: EmailListViewModelDelegate?
    1.18  
    1.19      let folderToShow: DisplayableFolderProtocol
    1.20