diff options
author | Maxime “pep” Buquet <pep@bouah.net> | 2019-09-02 13:27:31 +0200 |
---|---|---|
committer | Maxime “pep” Buquet <pep@bouah.net> | 2019-09-02 13:27:31 +0200 |
commit | d8638d5e31dc2c25b9ca39283abecb526ef3f07c (patch) | |
tree | 0b4cfcf81d04fd293b8004b43637cda292ada5cd /poezio/core | |
parent | 7c7523e0ab0974e97d1e9bee17e961fefb06f42e (diff) | |
download | poezio-d8638d5e31dc2c25b9ca39283abecb526ef3f07c.tar.gz poezio-d8638d5e31dc2c25b9ca39283abecb526ef3f07c.tar.bz2 poezio-d8638d5e31dc2c25b9ca39283abecb526ef3f07c.tar.xz poezio-d8638d5e31dc2c25b9ca39283abecb526ef3f07c.zip |
Eradicate more safeJID calls
Signed-off-by: Maxime “pep” Buquet <pep@bouah.net>
Diffstat (limited to 'poezio/core')
-rw-r--r-- | poezio/core/core.py | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/poezio/core/core.py b/poezio/core/core.py index 74041429..a99b47d9 100644 --- a/poezio/core/core.py +++ b/poezio/core/core.py @@ -35,7 +35,6 @@ from poezio import timed_events from poezio import windows from poezio.bookmarks import BookmarkList -from poezio.common import safeJID from poezio.config import config, firstrun from poezio.contact import Contact, Resource from poezio.daemon import Executor @@ -1019,7 +1018,7 @@ class Core: If fallback_barejid is True, then this method will seek other tabs with the same barejid, instead of searching only by fulljid. """ - jid = safeJID(jid) + jid = JID(jid) # We first check if we have a static conversation opened # with this precise resource conversation = self.tabs.by_name_and_class(jid.full, @@ -1164,7 +1163,7 @@ class Core: provided, we open a StaticConversationTab, else a DynamicConversationTab """ - if safeJID(jid).resource: + if jid.resource: new_tab = tabs.StaticConversationTab(self, jid) else: new_tab = tabs.DynamicConversationTab(self, jid) |