Respect "Show contact names" option when determining sender for
notification.

Fixes #4765.