Commit de008f71 authored by Daniel Brötzmann's avatar Daniel Brötzmann
Browse files

[acronyms] Adapt to Gajim changes

parent 5218f522
Pipeline #8389 passed with stage
in 1 minute and 44 seconds
......@@ -23,7 +23,6 @@ from functools import partial
from gi.repository import GLib
from gi.repository import Gtk
from gajim.common import app
from gajim.common import configpaths
from gajim.plugins import GajimPlugin
......@@ -120,13 +119,12 @@ class AcronymsExpanderPlugin(GajimPlugin):
last_word = word_start_iter.get_slice(insert_iter)
if contact.is_groupchat:
nick_list = app.contacts.get_nick_list(account, contact.jid)
if last_word in nick_list:
if last_word in contact.get_user_nicknames():'Groupchat participant has same nick as acronym')
if contact.is_pm_contact:
if last_word == contact.get_shown_name():
if last_word =='Contact name equals acronym')
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