Commit e57bf0d4 authored by mathieui's avatar mathieui

fix: available presences in tabs

parent b8c5d4c0
......@@ -819,8 +819,11 @@ class ChatTab(Tab):
def inactive(self) -> bool:
"""Whether we should send inactive or active as a chatstate"""
return in ('xa', 'away') or\
(hasattr(self, 'directed_presence') and not self.directed_presence)
return in ('xa', 'away') or (
hasattr(self, 'directed_presence')
and self.directed_presence is not None
and self.directed_presence
def move_separator(self) -> None:
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment