From a46ea168c6fbb61e27ae0e13f599833f2ac20ec5 Mon Sep 17 00:00:00 2001 From: annelin Date: Sat, 26 Sep 2020 10:55:25 +0300 Subject: [PATCH] Process status update after subscription handling --- inc/xmppcomponent.rb | 1 + 1 file changed, 1 insertion(+) 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)