poezio/tabs/basetabs: remove safeJID call

Signed-off-by: Maxime Buquet's avatarMaxime “pep” Buquet <pep@bouah.net>
parent 2d0cc092
Pipeline #2021 failed with stages
in 1 minute and 23 seconds
......@@ -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,
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment