Fix removing avatar sha from DB
the account name was passed instead of the account jid
This commit is contained in:
parent
b95759dfb8
commit
398ad0eed8
1 changed files with 2 additions and 1 deletions
|
@ -294,7 +294,8 @@ class ConnectionVcard:
|
||||||
# Remove avatar
|
# Remove avatar
|
||||||
app.log('avatar').info('Remove: %s', obj.jid)
|
app.log('avatar').info('Remove: %s', obj.jid)
|
||||||
app.contacts.set_avatar(self.name, obj.jid, None)
|
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)
|
app.interface.update_avatar(self.name, obj.jid)
|
||||||
else:
|
else:
|
||||||
app.log('avatar').info(
|
app.log('avatar').info(
|
||||||
|
|
Loading…
Add table
Reference in a new issue