Skip to content

Commit 6b2cf5c

Browse files
committed
Small fix to dismiss queued message
Used when there is a schedule parsing error — this effectively dismisses the “getting latest events” schedule that is *held* on the main thread, so the schedule error alert can be shown.
1 parent 5549246 commit 6b2cf5c

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

BrickHack-Mobile/AlertMessage.swift

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,9 @@ class MessageHandler {
2222
// Precondition: must be called on the main thread
2323
static func showAlertMessage(withTitle title: String, body: String, type: MessageType ) {
2424

25+
// Disable previous alert if still visible
26+
SwiftMessages.hide()
27+
2528
let view = MessageView.viewFromNib(layout: .tabView)
2629

2730
// Map our fake type to their type

0 commit comments

Comments
 (0)