From 398ad0eed82278da339b4061547c4b1590d15134 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Philipp=20H=C3=B6rist?= Date: Sun, 22 Oct 2017 19:56:22 +0200 Subject: [PATCH] Fix removing avatar sha from DB the account name was passed instead of the account jid --- gajim/common/connection_handlers.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/gajim/common/connection_handlers.py b/gajim/common/connection_handlers.py index c80f63edb..175905511 100644 --- a/gajim/common/connection_handlers.py +++ b/gajim/common/connection_handlers.py @@ -294,7 +294,8 @@ class ConnectionVcard: # Remove avatar app.log('avatar').info('Remove: %s', obj.jid) app.contacts.set_avatar(self.name, obj.jid, None) - app.logger.set_avatar_sha(self.name, obj.jid, None) + own_jid = self.get_own_jid().getStripped() + app.logger.set_avatar_sha(own_jid, obj.jid, None) app.interface.update_avatar(self.name, obj.jid) else: app.log('avatar').info(