Philipp Hörist pushed to branch unify-control at gajim / gajim
Commits:
f404bf75 by lovetox at 2022-08-09T23:29:57+02:00
fix: Stay backwards compatible
- - - - -
1 changed file:
- gajim/gtk/control.py
Changes:
=====================================
gajim/gtk/control.py
=====================================
@@ -114,6 +114,18 @@ def contact(self) -> types.ChatContactT:
assert self._contact is not None
return self._contact
+ @property
+ def account(self) -> str:
+ # Compatibility with Plugins for Gajim < 1.5
+ assert self._contact is not None
+ return self._contact.account
+
+ @property
+ def room_jid(self) -> str:
+ # Compatibility with Plugins for Gajim < 1.5
+ assert self._contact is not None
+ return str(self._contact.jid)
+
@property
def client(self) -> types.Client:
assert self._client is not None
View it on GitLab:
https://dev.gajim.org/gajim/gajim/-/commit/f404bf75bbfb1483eaba7ce3b2eaf0e790fc27c4
--
View it on GitLab:
https://dev.gajim.org/gajim/gajim/-/commit/f404bf75bbfb1483eaba7ce3b2eaf0e790fc27c4
You're receiving this email because of your account on dev.gajim.org.
_______________________________________________
Commits mailing list
[email protected]
https://lists.gajim.org/cgi-bin/listinfo/commits