{% with messages = get_flashed_messages(with_categories=true) %}
{% if messages %}
{% set ns = namespace(vistos=[]) %}
{% for category, message in messages %}
{% set chave = (category|string) ~ '||' ~ (message|string) %}
{% if chave not in ns.vistos %}
{% set ns.vistos = ns.vistos + [chave] %}