fix: unify log_message signature

This commit is contained in:
mathieui 2021-03-20 21:06:26 +01:00
parent 9bd3826fe7
commit 5a59eb1d4e
2 changed files with 2 additions and 2 deletions

View file

@ -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.
"""

View file

@ -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