fix: unify log_message signature
This commit is contained in:
parent
9bd3826fe7
commit
5a59eb1d4e
2 changed files with 2 additions and 2 deletions
|
@ -585,7 +585,7 @@ class ChatTab(Tab):
|
||||||
def general_jid(self) -> JID:
|
def general_jid(self) -> JID:
|
||||||
raise NotImplementedError
|
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.
|
Log the messages in the archives.
|
||||||
"""
|
"""
|
||||||
|
|
|
@ -1072,7 +1072,7 @@ class MucTab(ChatTab):
|
||||||
"""
|
"""
|
||||||
return self.topic.replace('\n', '|')
|
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
|
Log the messages in the archives, if it needs
|
||||||
to be
|
to be
|
||||||
|
|
Loading…
Reference in a new issue