summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--poezio/windows/info_wins.py7
1 files changed, 6 insertions, 1 deletions
diff --git a/poezio/windows/info_wins.py b/poezio/windows/info_wins.py
index aeaa8680..89832c9c 100644
--- a/poezio/windows/info_wins.py
+++ b/poezio/windows/info_wins.py
@@ -165,8 +165,13 @@ class ConversationInfoWin(InfoWin):
else:
presence = resource.presence
color = get_theme().color_show(presence)
+ if not presence:
+ presence = get_theme().CHAR_STATUS
self.addstr('[', to_curses_attr(get_theme().COLOR_INFORMATION_BAR))
- self.addstr(get_theme().CHAR_STATUS, to_curses_attr(color))
+ self.addstr(presence, to_curses_attr(color))
+ if resource and resource.status:
+ shortened = resource.status[:20] + (resource.status[:20] and '..')
+ self.addstr(' %s' % shortened, to_curses_attr(get_theme().COLOR_INFORMATION_BAR))
self.addstr(']', to_curses_attr(get_theme().COLOR_INFORMATION_BAR))
def write_contact_information(self, contact):