Daniel Brötzmann pushed to branch master at gajim / gajim
Commits: 799b8c21 by wurstsalat at 2023-02-11T18:58:59+01:00 fix: Don't highlight message if it's an URI containing our nick Fixes #11387 - - - - - 1 changed file: - gajim/common/helpers.py Changes: ===================================== gajim/common/helpers.py ===================================== @@ -565,6 +565,12 @@ def message_needs_highlight(text: str, nickname: str, own_jid: str) -> bool: Check text to see whether any of the words in (muc_highlight_words and nick) appear ''' + + uri = parse_uri(text) + if uri.type != URIType.INVALID: + # Don't highlight message if it's an URI + return False + special_words = app.settings.get('muc_highlight_words').split(';') special_words.append(nickname) special_words.append(own_jid) View it on GitLab: https://dev.gajim.org/gajim/gajim/-/commit/799b8c212cc1fab4c302d774a56708041a0dae12 -- View it on GitLab: https://dev.gajim.org/gajim/gajim/-/commit/799b8c212cc1fab4c302d774a56708041a0dae12 You're receiving this email because of your account on dev.gajim.org.
_______________________________________________ Commits mailing list Commits@gajim.org https://lists.gajim.org/cgi-bin/listinfo/commits