[acronyms_expander] 1.4.7

This commit is contained in:
wurstsalat
2023-02-20 20:18:19 +01:00
parent a966d9198e
commit 97575e5095
2 changed files with 5 additions and 2 deletions

View File

@@ -99,6 +99,10 @@ class AcronymsExpanderPlugin(GajimPlugin):
buffer_: Gtk.TextBuffer buffer_: Gtk.TextBuffer
) -> None: ) -> None:
if self._contact is None:
# If no chat has been activated yet
return
if self._replace_in_progress: if self._replace_in_progress:
return return
@@ -132,7 +136,6 @@ class AcronymsExpanderPlugin(GajimPlugin):
# Get last word and cut invoker # Get last word and cut invoker
last_word = word_start_iter.get_slice(insert_iter) last_word = word_start_iter.get_slice(insert_iter)
assert self._contact is not None
if isinstance(self._contact, GroupchatContact): if isinstance(self._contact, GroupchatContact):
if last_word in self._contact.get_user_nicknames(): if last_word in self._contact.get_user_nicknames():
log.info('Groupchat participant has same nick as acronym') log.info('Groupchat participant has same nick as acronym')

View File

@@ -17,5 +17,5 @@
"gajim>=1.5.0" "gajim>=1.5.0"
], ],
"short_name": "acronyms_expander", "short_name": "acronyms_expander",
"version": "1.4.6" "version": "1.4.7"
} }