Backport #106 (fix allow private message flag check on send)