Send chatstates to MUC only if the room is joined
This commit is contained in:
parent
81143e7125
commit
5a90c70568
1 changed files with 2 additions and 2 deletions
|
@ -690,7 +690,7 @@ class MucTab(ChatTab, TabWithInfoWin):
|
||||||
if self.text_win.built_lines and self.text_win.built_lines[-1] is None:
|
if self.text_win.built_lines and self.text_win.built_lines[-1] is None:
|
||||||
self.text_win.remove_line_separator()
|
self.text_win.remove_line_separator()
|
||||||
curses.curs_set(1)
|
curses.curs_set(1)
|
||||||
if config.get('send_chat_states', 'true') == 'true' and not self.input.get_text():
|
if self.get_room().joined and config.get('send_chat_states', 'true') == 'true' and not self.input.get_text():
|
||||||
self.send_chat_state('active')
|
self.send_chat_state('active')
|
||||||
|
|
||||||
def on_scroll_up(self):
|
def on_scroll_up(self):
|
||||||
|
@ -803,7 +803,7 @@ class PrivateTab(ChatTab, TabWithInfoWin):
|
||||||
self._room.set_color_state(theme.COLOR_TAB_NORMAL)
|
self._room.set_color_state(theme.COLOR_TAB_NORMAL)
|
||||||
self.text_win.remove_line_separator()
|
self.text_win.remove_line_separator()
|
||||||
self.text_win.add_line_separator()
|
self.text_win.add_line_separator()
|
||||||
if config.get('send_chat_states', 'true') == 'true' and not self.input.get_text():
|
if self.get_room().joined and config.get('send_chat_states', 'true') == 'true' and not self.input.get_text():
|
||||||
self.send_chat_state('inactive')
|
self.send_chat_state('inactive')
|
||||||
|
|
||||||
def on_gain_focus(self):
|
def on_gain_focus(self):
|
||||||
|
|
Loading…
Reference in a new issue