diff options
Diffstat (limited to 'src/windows.py')
-rw-r--r-- | src/windows.py | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/src/windows.py b/src/windows.py index aab254c0..dc30d541 100644 --- a/src/windows.py +++ b/src/windows.py @@ -282,7 +282,7 @@ class ConversationInfoWin(InfoWin): def resize(self, height, width, y, x, stdscr): self._resize(height, width, y, x, stdscr) - def refresh(self, jid, contact, text_buffer, window): + def refresh(self, jid, contact, text_buffer, window, chatstate): # contact can be None, if we receive a message # from someone not in our roster. In this case, we display # only the maximum information from the message we can get. @@ -305,6 +305,7 @@ class ConversationInfoWin(InfoWin): self.write_contact_informations(contact) self.write_resource_information(resource) self.print_scroll_position(window) + self.write_chatstate(chatstate) self.finish_line(theme.COLOR_INFORMATION_BAR) self._refresh() @@ -339,6 +340,10 @@ class ConversationInfoWin(InfoWin): self.addstr(jid.full, common.curses_color_pair(theme.COLOR_CONVERSATION_NAME)) self.addstr('] ', common.curses_color_pair(theme.COLOR_INFORMATION_BAR)) + def write_chatstate(self, state): + if state: + self.addstr(' %s' % (state,), common.curses_color_pair(theme.COLOR_INFORMATION_BAR)) + class ConversationStatusMessageWin(InfoWin): """ The upper bar displaying the status message of the contact |