Fix removing avatar sha from DB

the account name was passed instead of the account jid
This commit is contained in:
Philipp Hörist 2017-10-22 19:56:22 +02:00
parent b95759dfb8
commit 398ad0eed8
1 changed files with 2 additions and 1 deletions

View File

@ -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(