[FIX] im_chat, im_livechat : fix loading covnersation history and is_in_session function