getGroupDmTargetOrigins() was called after the leaving user's dm_members row was deleted, causing their instance to be excluded from member_remove and ownership_transfer relay fan-out if they were the only member from that peer. Move the target origins and leaving user lookups to before the deletion.