Detect messages from self in MUC

Quick port of 4053eb6c