Daniel Brötzmann pushed to branch master at gajim / gajim
Commits: a7fbe50b by Emmanuel Gil Peyrot at 2025-03-07T23:08:43+01:00 change: Display a warning when trying to add domain JID Such JIDs are valid, so we shouldn’t forbid them, but users stumble upon that thinking they can just add 'user' instead of '[email protected]', so displaying a warning seems better than not. - - - - - 1 changed file: - gajim/gtk/add_contact.py Changes: ===================================== gajim/gtk/add_contact.py ===================================== @@ -326,6 +326,14 @@ def _validate_address(self, address: str) -> bool: ) return False + if jid.localpart is None: + self._show_icon(True) + self._ui.address_entry.set_icon_tooltip_text( + Gtk.EntryIconPosition.SECONDARY, + _("'@' is missing in address. Are you sure this is correct?"), + ) + return True + self._show_icon(False) return True View it on GitLab: https://dev.gajim.org/gajim/gajim/-/commit/a7fbe50b7f341baa32033c97fdbccaecd5ffc398 -- View it on GitLab: https://dev.gajim.org/gajim/gajim/-/commit/a7fbe50b7f341baa32033c97fdbccaecd5ffc398 You're receiving this email because of your account on dev.gajim.org.
_______________________________________________ Commits mailing list -- [email protected] To unsubscribe send an email to [email protected]
