If you have the depth image registered with the RGB image, you can set a null transform between rgb and depth:
<node pkg="tf" type="static_transform_publisher" name="camera_link_to_rgb_broadcaster" args="0 0 0 -1.5707963267948966 0 -1.5707963267948966 camera_link zed_rgb_optical_frame 100" />
<node pkg="tf" type="static_transform_publisher" name="rgb_to_depth_broadcaster" args="0 0 0 0 0 0 zed_rgb_optical_frame zed_depth_optical_frame 100" />
Generally (as for freenect/openni/openni2 nodes), the node sending the registered images set the frame_id to RGB for the depth messages too.
cheers