In reply to nickinscottishmountains:
Only when opened.
FYI, I can't find it now, but I discovered a setting which basically said "Let Facebook personalise adverts based on your messages". How this can be the case with end-to-end encryption I don't know, but I turned it off, and now can't find the setting to check it's still off.