From d8638d5e31dc2c25b9ca39283abecb526ef3f07c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Maxime=20=E2=80=9Cpep=E2=80=9D=20Buquet?= Date: Mon, 2 Sep 2019 13:27:31 +0200 Subject: Eradicate more safeJID calls MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Maxime “pep” Buquet --- poezio/core/core.py | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'poezio/core/core.py') 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) -- cgit v1.2.3