Merge branch 'bugfix/top_alert_pages' into 'develop'

count check

See merge request BPHV_MIPS/mvm_core!106
This commit is contained in:
Pfeil, Scott Robert 2020-09-17 08:46:48 -04:00
commit e0833fbdcf

View File

@ -42,6 +42,7 @@ public extension MVMCoreAlertHandler {
for case let operation as MVMCoreTopAlertOperation in topAlertQueue.operations {
if !operation.isCancelled,
let pages = operation.topAlertObject.json?.optionalArrayForKey("pages") as? [String],
pages.count > 0,
(pageType == nil || !pages.contains(pageType!)) {
if operation.isExecuting {
operation.reAddAfterCancel = operation.topAlertObject.persistent