diff options
author | mathieui <mathieui@mathieui.net> | 2020-05-31 23:14:39 +0200 |
---|---|---|
committer | mathieui <mathieui@mathieui.net> | 2021-04-02 22:22:30 +0200 |
commit | f56811d5466d4b23f6bfc71b88cb6cdbc4090e29 (patch) | |
tree | 506778c58581b0f37b690fcd4b98fc0e94d3c3c3 /poezio/tabs/conversationtab.py | |
parent | bbc22fc8bc99be8c84272efa591487a33ef12fc4 (diff) | |
download | poezio-f56811d5466d4b23f6bfc71b88cb6cdbc4090e29.tar.gz poezio-f56811d5466d4b23f6bfc71b88cb6cdbc4090e29.tar.bz2 poezio-f56811d5466d4b23f6bfc71b88cb6cdbc4090e29.tar.xz poezio-f56811d5466d4b23f6bfc71b88cb6cdbc4090e29.zip |
logging: Remove the "typ" passing when adding or logging messages
Diffstat (limited to 'poezio/tabs/conversationtab.py')
-rw-r--r-- | poezio/tabs/conversationtab.py | 13 |
1 files changed, 5 insertions, 8 deletions
diff --git a/poezio/tabs/conversationtab.py b/poezio/tabs/conversationtab.py index fc89146e..8f608e84 100644 --- a/poezio/tabs/conversationtab.py +++ b/poezio/tabs/conversationtab.py @@ -178,7 +178,7 @@ class ConversationTab(OneToOneTab): (' and their last status was %s' % status) if status else '', ) - self.add_message(InfoMessage(msg), typ=0) + self.add_message(InfoMessage(msg)) self.core.refresh_window() self.core.xmpp.plugin['xep_0012'].get_last_activity( @@ -206,15 +206,12 @@ class ConversationTab(OneToOneTab): 'status': status, } ), - typ=0, - ) - return True - else: - self.add_message( - InfoMessage("No information available"), - typ=0, ) return True + self.add_message( + InfoMessage("No information available"), + ) + return True @command_args_parser.quoted(0, 1) async def command_version(self, args): |