dismiss endless messages when the view controller is dismissed

When a message endless message was shown in a view controller inside a navigation view controller an the vc is popped , the message isn't visible but still in the message queue.

Another solution would be a method which allows to remove all messages in a specific view controller.
This way the view controller could remove all it's messages in - viewDidDisappear.