Process status update after subscription handling

This commit is contained in:
annelin 2020-09-26 10:55:25 +03:00
parent 474e59b4d8
commit a46ea168c6

View file

@ -49,6 +49,7 @@ class XMPPComponent
answer = presence.answer(false) answer = presence.answer(false)
answer.type = :subscribed answer.type = :subscribed
@component.send(answer) @component.send(answer)
@sessions[presence.from.bare.to_s].process_status_update(presence.to.to_s.split('@').first.to_i)
end end
def handle_presence(presence) def handle_presence(presence)