Commit d70988b1 authored by mathieui's avatar mathieui

Fix #3293 (provide detailed presence in status line)

Less eye travel for short statuses.
(patch from Ge0rG)
parent 83ced76b
......@@ -165,8 +165,13 @@ class ConversationInfoWin(InfoWin):
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):
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