poezio/tabs/basetabs: remove safeJID call

Signed-off-by: Maxime “pep” Buquet <pep@bouah.net>
This commit is contained in:
Maxime “pep” Buquet 2019-04-07 22:21:29 +01:00
parent 2d0cc092fc
commit 89a61b84bd
Signed by: pep
GPG key ID: DEDA74AEECA9D0F2

View file

@ -522,8 +522,9 @@ class ChatTab(Tab):
raise NotImplementedError
def load_logs(self, log_nb: int) -> Optional[List[Dict[str, Any]]]:
logs = logger.get_logs(safeJID(self.name).bare, log_nb)
return logs
if self.name is not None:
return logger.get_logs(self.name.bare, log_nb)
return None
def log_message(self,
txt: str,