code: def dynamic_message_event(self, sender, message):
          
          # LOGGER.debug('Dynamic message event')
          _ = sender  # NOQA
          self.dynamic_messages.append(message)
          self.dynamic_messages_log.append(message)
          # Old way (works but causes full page refresh)
          self.show_messages()
          return
docs: Dynamic event handler - set message state based on event.
  
          Dynamic messages don't clear the message buffer.
  
          :param sender: Unused - the object that sent the message.
          :type sender: Object, None
  
          :param message: A message to show in the viewer.
          :type message: safe.messaging.Message