Commit 27d2157c authored by Link Mauve's avatar Link Mauve
Browse files

contact: Remove now-unused alias of presence to show.

parent 8eb7f73b
......@@ -40,8 +40,6 @@ class Resource(object):
def presence(self):
return self._data.get('show') or ''
show = presence
@property
def status(self):
return self._data.get('status') or ''
......
......@@ -200,7 +200,7 @@ class ConversationTab(OneToOneTab):
if resource:
status = ('Status: %s' % resource.status) if resource.status else ''
self._text_buffer.add_message("\x19%(info_col)s}Show: %(show)s, %(status)s\x19o" % {
'show': resource.show or 'available', 'status': status, 'info_col': dump_tuple(get_theme().COLOR_INFORMATION_TEXT)})
'show': resource.presence or 'available', 'status': status, 'info_col': dump_tuple(get_theme().COLOR_INFORMATION_TEXT)})
return True
else:
self._text_buffer.add_message("\x19%(info_col)s}No information available\x19o" % {'info_col': dump_tuple(get_theme().COLOR_INFORMATION_TEXT)})
......
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