Manos Chorianopoulos

fix campaigns_retrieved event

......@@ -181,6 +181,7 @@ var timer2: DispatchSourceTimer?
swiftApi().setUserTag("")
}
SwiftEventBus.post("questionnaire", sender: questionnaireEvent)
SwiftEventBus.post("campaigns_retrieved")
}
} else {
}
......
......@@ -169,6 +169,7 @@ import SwiftEventBus
func getCampaignsCallback (_ campaignsData: Array<swiftApi.CampaignItemModel>?) -> Void {
if (campaignsData != nil) {
DispatchQueue.main.async {
SwiftEventBus.post("campaigns_retrieved")
}
} else {
}
......
......@@ -1166,7 +1166,7 @@ public class swiftApi {
getCampaignsCallback(sortedCampaigns);
SwiftEventBus.post("campaigns_retrieved")
// SwiftEventBus.post("campaigns_retrieved")
})
} else {
......@@ -5777,6 +5777,7 @@ public class swiftApi {
func getCampaignsCallback (_ campaignsData: Array<swiftApi.CampaignItemModel>?) -> Void {
if (campaignsData != nil) {
DispatchQueue.main.async {
SwiftEventBus.post("campaigns_retrieved")
}
} else {
}
......@@ -5804,6 +5805,7 @@ public class swiftApi {
func getCampaignsCallback (_ campaignsData: Array<swiftApi.CampaignItemModel>?) -> Void {
if (campaignsData != nil) {
DispatchQueue.main.async {
SwiftEventBus.post("campaigns_retrieved")
}
} else {
}
......