In your case, you were both doing illegal acts, so youre both to blame and then insurance companies fight over it.
Here in Cali, you can lane share legally. The guy opening his door would be to blame. If youre ever doing something against vehicle code, and you get in an accident, youre to blame.