Commit ce73e82f authored by Yann Leboulanger's avatar Yann Leboulanger

Fix traceback when right click on email in history viewer. Fixes #5131

parent dd3d8288
......@@ -842,6 +842,7 @@ class ConversationTextview:
self.handlers[id] = childs[6]
allow_add = False
if self.account:
c = gajim.contacts.get_first_contact_from_jid(self.account, text)
if c and not gajim.contacts.is_pm_from_contact(self.account, c):
if _('Not in Roster') in c.groups:
......
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