Fix formatting.
Fix bug where both incoming and outgoing notifications are being filtered.

Change-Id: I79c6d74427cccf6db635e29e8f36e67001695fc6