Unverified Commit 24b1a1fe authored by mathieui's avatar mathieui
Browse files

yapf -rip

parent ee565894
......@@ -1059,7 +1059,6 @@ class Core:
"""Focus a tab"""
return self.tabs.set_current_tab(tab)
### Opening actions ###
def open_conversation_window(self, jid: JID,
......
......@@ -36,7 +36,6 @@ from poezio.decorators import command_args_parser
log = logging.getLogger(__name__)
# getters for tab colors (lambdas, so that they are dynamic)
STATE_COLORS = {
'disconnected': lambda: get_theme().COLOR_TAB_DISCONNECTED,
......@@ -515,7 +514,11 @@ class ChatTab(Tab):
logs = logger.get_logs(safeJID(self.name).bare, log_nb)
return logs
def log_message(self, txt: str, nickname: str, time: Optional[datetime] = None, typ=1):
def log_message(self,
txt: str,
nickname: str,
time: Optional[datetime] = None,
typ=1):
"""
Log the messages in the archives.
"""
......
......@@ -845,7 +845,12 @@ class MucTab(ChatTab):
}
self.add_message(kick_msg, typ=2)
def on_user_leave_groupchat(self, user, jid, status, from_nick, from_room,
def on_user_leave_groupchat(self,
user,
jid,
status,
from_nick,
from_room,
server_initiated=False):
"""
When an user leaves a groupchat
......
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