Commit 313b913a authored by Philipp Hörist's avatar Philipp Hörist
Browse files

Dont get own avatar_sha from contacts

parent cf580c62
......@@ -156,12 +156,13 @@ def on_PHOTO_button_press_event(self, widget, event):
menu = Gtk.Menu()
nick = app.config.get_per('accounts', self.account, 'name')
sha = app.contacts.get_avatar_sha(self.account, self.jid)
if self.avatar_sha is None:
menuitem = Gtk.MenuItem.new_with_mnemonic(_('Save _As'))
sha, nick)
self.avatar_sha, nick)
menu.connect('selection-done', lambda w: w.destroy())
# show the menu
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment