parent
d9050e9565
commit
1efc45f882
2 changed files with 10 additions and 3 deletions
|
@ -344,12 +344,16 @@ def on_normal_message(self, message):
|
|||
conversation.remote_wants_chatstates = True
|
||||
else:
|
||||
conversation.remote_wants_chatstates = False
|
||||
if 'private' in config.get('beep_on').split():
|
||||
if not own and 'private' in config.get('beep_on').split():
|
||||
if not config.get_by_tabname('disable_beep', conv_jid.bare):
|
||||
curses.beep()
|
||||
if self.current_tab() is not conversation:
|
||||
conversation.state = 'private'
|
||||
self.refresh_tab_win()
|
||||
if not own:
|
||||
conversation.state = 'private'
|
||||
self.refresh_tab_win()
|
||||
else:
|
||||
conversation.set_state('normal')
|
||||
self.refresh_tab_win()
|
||||
else:
|
||||
self.refresh_window()
|
||||
|
||||
|
|
|
@ -171,6 +171,9 @@ class Tab(object):
|
|||
if self._state == 'current':
|
||||
self._prev_state = None
|
||||
|
||||
def set_state(self, value):
|
||||
self._state = value
|
||||
|
||||
def save_state(self):
|
||||
if self._state != 'composing':
|
||||
self._prev_state = self._state
|
||||
|
|
Loading…
Reference in a new issue