hypeJunction/hypeInbox — pull request #7 by Peter83 (2014-10-22 10:40:11+00:00)
Title: Update base.php

The lines from 626 to 644 doesn't make sense. The get user notification settings retrive value in an array that have to be inverted (keys and values) to be used with notify_user, and even if correct it will make a loop in notifications methods.
If we are in hj_inbox_send_message or we are here to send a private message, or we are overriding the site method for notifications, as in lib/notifications with hj_inbox_site_notify_handler.
My suggestion is to send an email notification only for private messages, to avoid loops