From afae22656250c231d3ce03acc134d15bc40af6b9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Maxime=20=E2=80=9Cpep=E2=80=9D=20Buquet?= Date: Thu, 31 Mar 2022 11:52:27 +0200 Subject: PrivateTab: Display initial message when no use_log MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Maxime “pep” Buquet --- poezio/tabs/basetabs.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/poezio/tabs/basetabs.py b/poezio/tabs/basetabs.py index 37dea9c3..a0fce822 100644 --- a/poezio/tabs/basetabs.py +++ b/poezio/tabs/basetabs.py @@ -1037,6 +1037,8 @@ class OneToOneTab(ChatTab): asyncio.create_task(fallback_no_mam()) elif use_log and initial: asyncio.create_task(self.handle_message(initial, display=False)) + elif initial: + asyncio.create_task(self.handle_message(initial)) asyncio.create_task( LogLoader(logger, self, use_log, self._initial_log).tab_open() ) -- cgit v1.2.3