Glad it worked. CF7 changes too much and sometimes it is impossible to get the code right for them. This is one of the case.
I worked with that plugin developer and solved this issue about 2 years ago. Now that code is again changed. See https://wordpress.org/support/topic/is_user_logged_in-always-return-false-inside-wpcf7_before_send_mail/
I will try to solve the issue again in the core.