diff options
author | mathieui <mathieui@mathieui.net> | 2021-07-02 20:59:25 +0200 |
---|---|---|
committer | mathieui <mathieui@mathieui.net> | 2021-07-02 20:59:25 +0200 |
commit | 2b3cde233fec354bf1b1894e926d67ec9ce371b8 (patch) | |
tree | 89b28567bd65a4d71715ea29096855b4b8e5ea80 /poezio/tabs/conversationtab.py | |
parent | 26505c32df055bfe41c3a852fff1b1eaf5dafda7 (diff) | |
download | poezio-2b3cde233fec354bf1b1894e926d67ec9ce371b8.tar.gz poezio-2b3cde233fec354bf1b1894e926d67ec9ce371b8.tar.bz2 poezio-2b3cde233fec354bf1b1894e926d67ec9ce371b8.tar.xz poezio-2b3cde233fec354bf1b1894e926d67ec9ce371b8.zip |
fix: improve typing
preliminary to more typing added to slixmpp, fix things in advance
Diffstat (limited to 'poezio/tabs/conversationtab.py')
-rw-r--r-- | poezio/tabs/conversationtab.py | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/poezio/tabs/conversationtab.py b/poezio/tabs/conversationtab.py index bcffb22d..9ddb6fc1 100644 --- a/poezio/tabs/conversationtab.py +++ b/poezio/tabs/conversationtab.py @@ -173,7 +173,7 @@ class ConversationTab(OneToOneTab): @refresh_wrapper.always @command_args_parser.raw def command_say(self, line: str, attention: bool = False, correct: bool = False): - msg = self.core.xmpp.make_message( + msg: SMessage = self.core.xmpp.make_message( mto=self.get_dest_jid(), mfrom=self.core.xmpp.boundjid ) @@ -210,7 +210,8 @@ class ConversationTab(OneToOneTab): return self.set_last_sent_message(msg, correct=correct) self.core.handler.on_normal_message(msg) - msg._add_receipt = True + # Our receipts slixmpp hack + msg._add_receipt = True # type: ignore msg.send() self.cancel_paused_delay() |