Clean up the send_message processing of the message recipient.

(imported from commit 1e6d7783901743650cfb759b3136ae1de0f2989e)
This commit is contained in:
Tim Abbott
2013-04-17 13:34:20 -04:00
parent de5038f4d7
commit bc60be9ad5
2 changed files with 26 additions and 20 deletions

View File

@@ -53,7 +53,7 @@ function stream_to_me(message) {
}
function pm_to_me(message) {
return message.type === 'private' && message.to[0] === 'humbug+tutorial@humbughq.com';
return message.type === 'private' && message.to === 'humbug+tutorial@humbughq.com';
}
function any_message_to_me(message) {