From b1a9979be2587135b1d9b341f685eba995ee1e24 Mon Sep 17 00:00:00 2001 From: annelin Date: Thu, 9 May 2019 14:50:54 +0300 Subject: [PATCH] [FIX] Fixed delayed presences while running in multiple-account mode --- inc/xmppcomponent.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/inc/xmppcomponent.rb b/inc/xmppcomponent.rb index 2b2cd64..ea3240f 100644 --- a/inc/xmppcomponent.rb +++ b/inc/xmppcomponent.rb @@ -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('x', {'xmlns' => 'vcard-temp:x:update'} ).add_element("photo").add_text(photo) unless photo.nil? # nickname @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 # request timezone information #