[FIX] Fixed delayed presences while running in multiple-account mode

This commit is contained in:
annelin 2019-05-09 14:50:54 +03:00
parent 53586161d2
commit b1a9979be2

View file

@ -139,7 +139,7 @@ class XMPPComponent
req.add_element('nick', {'xmlns' => 'http://jabber.org/protocol/nick'} ).add_text(nickname) unless nickname.nil? # nickname req.add_element('nick', {'xmlns' => 'http://jabber.org/protocol/nick'} ).add_text(nickname) unless nickname.nil? # nickname
req.add_element('x', {'xmlns' => 'vcard-temp:x:update'} ).add_element("photo").add_text(photo) unless photo.nil? # nickname req.add_element('x', {'xmlns' => 'vcard-temp:x:update'} ).add_element("photo").add_text(photo) unless photo.nil? # nickname
@logger.debug req.to_s @logger.debug req.to_s
(immediately) ? @component.send(req) : @presence_que.store(to, req) (immediately) ? @component.send(req) : @presence_que.store(from+to, req)
end end
# request timezone information # # request timezone information #