diff options
author | mathieui <mathieui@mathieui.net> | 2022-02-15 23:05:23 +0100 |
---|---|---|
committer | Maxime Buquet <pep@bouah.net> | 2022-03-23 15:38:00 +0100 |
commit | def167791d099ffecb5a4b5a5582dce99e319987 (patch) | |
tree | c542f6d22bf8c5f8ca3ef42fd2981c74c18132a5 /poezio/tabs/privatetab.py | |
parent | 6174ca70d9bc36fde9d0a0c08ccb67e874a4711c (diff) | |
download | poezio-def167791d099ffecb5a4b5a5582dce99e319987.tar.gz poezio-def167791d099ffecb5a4b5a5582dce99e319987.tar.bz2 poezio-def167791d099ffecb5a4b5a5582dce99e319987.tar.xz poezio-def167791d099ffecb5a4b5a5582dce99e319987.zip |
fix: do not triplicate messages on /message tab openings
add a synchronization primitive to avoid /say until the logs are loaded
and synced (otherwise we do the /say THEN the message we just sent can
be loaded from the archive, while also being displayed)
Diffstat (limited to 'poezio/tabs/privatetab.py')
-rw-r--r-- | poezio/tabs/privatetab.py | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/poezio/tabs/privatetab.py b/poezio/tabs/privatetab.py index 9ed968b7..c68e5d2e 100644 --- a/poezio/tabs/privatetab.py +++ b/poezio/tabs/privatetab.py @@ -205,6 +205,7 @@ class PrivateTab(OneToOneTab): async def command_say(self, line: str, attention: bool = False, correct: bool = False) -> None: if not self.on: return + await self._initial_log.wait() our_jid = JID(self.jid.bare) our_jid.resource = self.own_nick msg: SMessage = self.core.xmpp.make_message( |