diff options
author | mathieui <mathieui@mathieui.net> | 2022-02-10 18:27:05 +0100 |
---|---|---|
committer | Maxime “pep” Buquet <pep@bouah.net> | 2022-02-25 22:35:30 +0100 |
commit | 456c4c46a6a740063e25ffcdd6cbdfeb70e4d621 (patch) | |
tree | 270d053c32d90f68d433c2ba1559b1ab187df002 /poezio/tabs/conversationtab.py | |
parent | 101bab502f6076049ea229d887d75d90b4a48356 (diff) | |
download | poezio-456c4c46a6a740063e25ffcdd6cbdfeb70e4d621.tar.gz poezio-456c4c46a6a740063e25ffcdd6cbdfeb70e4d621.tar.bz2 poezio-456c4c46a6a740063e25ffcdd6cbdfeb70e4d621.tar.xz poezio-456c4c46a6a740063e25ffcdd6cbdfeb70e4d621.zip |
internal: make the other message handlers async
Diffstat (limited to 'poezio/tabs/conversationtab.py')
-rw-r--r-- | poezio/tabs/conversationtab.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/poezio/tabs/conversationtab.py b/poezio/tabs/conversationtab.py index b95dff98..a7c019e4 100644 --- a/poezio/tabs/conversationtab.py +++ b/poezio/tabs/conversationtab.py @@ -106,7 +106,7 @@ class ConversationTab(OneToOneTab): def completion(self): self.complete_commands(self.input) - def handle_message(self, message: SMessage, display: bool = True): + async def handle_message(self, message: SMessage, display: bool = True): """Handle a received message. The message can come from us (carbon copy). @@ -133,7 +133,7 @@ class ConversationTab(OneToOneTab): else: return - self.core.events.trigger('conversation_msg', message, self) + await self.core.events.trigger_async('conversation_msg', message, self) if not message['body']: return |