def METHOD_NAME(self, m):
    send = False
    if m['name'] not in self.last_ui_msgs:
        send = True
    else:
        last = self.last_ui_msgs[m['name']]
        if m['name'] == 'report':
            if len(m['messages']) != len(last['messages']):
                send = True
            else:
                for a, b in zip(m['messages'], last['messages']):
                    if a.compass_id != b.compass_id:
                        send = True
                        break
        else:
            send = m != last
    if not send:
        return
    self.parent_pipe.send(m)
    self.last_ui_msgs[m['name']] = m