iachat/app/services/whatsapp/zapi_handlers/disconnected_callback.rb
Gabriel Jablonski 4fc80ba4ee
feat(zapi): Z-API integration (#115)
* feat(zapi): connect flow and UI updates

* fix(zapi): re-add manage connection section

* feat(zapi): reply

* feat: send message

* fix: qrcode job logic

* test: qr code job specs

* chore: concurrent index

* chore: whatsapp model minor

* test: message window service specs

* chore: service refactor

* test: zapi service

* chore: zapi beta

* chore: minor fixes

* test: incoming message specs

* chore: minor fixes

* feat: handle status transitions

* test: refactor spec

* test: refactor spec

* chore(z-api): use feature flag

* chore: fix migration name
2025-10-15 16:23:04 -03:00

10 lines
219 B
Ruby

module Whatsapp::ZapiHandlers::DisconnectedCallback
include Whatsapp::ZapiHandlers::Helpers
private
def process_disconnected_callback
inbox.channel.update_provider_connection!(connection: 'close')
end
end