Commit 5a59eb1d authored by mathieui's avatar mathieui

fix: unify log_message signature

parent 9bd3826f
......@@ -585,7 +585,7 @@ class ChatTab(Tab):
def general_jid(self) -> JID:
raise NotImplementedError
def log_message(self, message: BaseMessage, typ=1):
def log_message(self, message: BaseMessage, typ: int = 1):
"""
Log the messages in the archives.
"""
......
......@@ -1072,7 +1072,7 @@ class MucTab(ChatTab):
"""
return self.topic.replace('\n', '|')
def log_message(self, msg: Message, typ: int = 1) -> None:
def log_message(self, msg: BaseMessage, typ: int = 1) -> None:
"""
Log the messages in the archives, if it needs
to be
......
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