diff options
author | mathieui <mathieui@mathieui.net> | 2021-04-16 18:46:16 +0200 |
---|---|---|
committer | mathieui <mathieui@mathieui.net> | 2021-04-16 18:46:16 +0200 |
commit | e57bf0d43320f1ee75097c596ce2501320e480fc (patch) | |
tree | b0b0dd73cb05d8077c2a506356ce596bf30d8f00 | |
parent | b8c5d4c00a0686a709e17116eed06df18dd2c169 (diff) | |
download | poezio-e57bf0d43320f1ee75097c596ce2501320e480fc.tar.gz poezio-e57bf0d43320f1ee75097c596ce2501320e480fc.tar.bz2 poezio-e57bf0d43320f1ee75097c596ce2501320e480fc.tar.xz poezio-e57bf0d43320f1ee75097c596ce2501320e480fc.zip |
fix: available presences in tabs
-rw-r--r-- | poezio/tabs/basetabs.py | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/poezio/tabs/basetabs.py b/poezio/tabs/basetabs.py index 51c34e62..7ee8ff17 100644 --- a/poezio/tabs/basetabs.py +++ b/poezio/tabs/basetabs.py @@ -819,8 +819,11 @@ class ChatTab(Tab): @property def inactive(self) -> bool: """Whether we should send inactive or active as a chatstate""" - return self.core.status.show in ('xa', 'away') or\ - (hasattr(self, 'directed_presence') and not self.directed_presence) + return self.core.status.show in ('xa', 'away') or ( + hasattr(self, 'directed_presence') + and self.directed_presence is not None + and self.directed_presence + ) def move_separator(self) -> None: self.text_win.remove_line_separator() |