Detect messages from room JIDs properly