From dc6aa56e6a49547416488eecbb3a725c78ad089c Mon Sep 17 00:00:00 2001
From: Yann Leboulanger <asterix@lagaule.org>
Date: Wed, 1 Jan 2014 22:32:00 +0100
Subject: [PATCH] send jabber:iq:last to bare jid when contact is offline.
 Fixes #7610

---
 src/vcard.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/vcard.py b/src/vcard.py
index 309160f084..3efeb4a7c5 100644
--- a/src/vcard.py
+++ b/src/vcard.py
@@ -439,7 +439,7 @@ class VcardWindow:
                         self.contact.jid)
             else:
                 gajim.connections[self.account].request_last_status_time(
-                        self.contact.jid, self.contact.resource)
+                        self.contact.jid, '')
 
         # do not wait for os_info if contact is not connected or has error
         # additional check for observer is needed, as show is offline for him
-- 
GitLab