diff --git a/inc/xmppcomponent.rb b/inc/xmppcomponent.rb index 2a80530..f050c21 100644 --- a/inc/xmppcomponent.rb +++ b/inc/xmppcomponent.rb @@ -49,6 +49,7 @@ class XMPPComponent answer = presence.answer(false) answer.type = :subscribed @component.send(answer) + @sessions[presence.from.bare.to_s].process_status_update(presence.to.to_s.split('@').first.to_i) end def handle_presence(presence)