chat_session_leave_temporary.rb 389 B

12345678910111213141516
  1. # Copyright (C) 2012-2024 Zammad Foundation, https://zammad-foundation.org/
  2. class Sessions::Event::ChatSessionLeaveTemporary < Sessions::Event::ChatBase
  3. def run
  4. return super if super
  5. return if !check_chat_session_exists
  6. chat_session = current_chat_session
  7. ChatLeaveJob.set(wait: 0.5.minutes).perform_later(chat_session.id, @client_id, @session)
  8. false
  9. end
  10. end