hotosm/osm-tasking-manager2 — pull request #417 by ethan-nelson (2014-10-27 20:25:47+00:00)
Title: updating for self-address invalidation msg; fixes #416

Found issue #416. Added an if statement to check if the sender of the invalidation message is also the recipient. If so, then function essentially ends. If not, then it continues as usual.

I originally had the if statement right before send_message but decided to move it up a few lines so that the extra computing isn't performed on creating the subject, etc. if the message won't even be sent. Haven't locally tested (have my VM finally installed) but it works with arbitrary strings I tested in python.