Commit 98f2e2f6 authored by Daniel Brötzmann's avatar Daniel Brötzmann Committed by Philipp Hörist
Browse files

RosterTooltip: Add hint for Observers group

parent a378b6b7
......@@ -5357,7 +5357,9 @@ class RosterWindow:
def query_tooltip(self, widget, x_pos, y_pos, _keyboard_mode, tooltip):
row = widget.get_path_at_pos(x_pos, y_pos)[0]
path = widget.get_path_at_pos(x_pos, y_pos)
row = path[0]
col = path[1]
except TypeError:
return False
......@@ -5378,6 +5380,15 @@ class RosterWindow:
jid = model[iter_][Column.JID]
connected_contacts = []
if typ == 'group':
if jid == _('Observers'):
widget.set_tooltip_cell(tooltip, row, col, None)
_('Observers can see your status, but you '
'are not allowed to see theirs'))
return True
return False
if typ in ('contact', 'self_contact'):
contacts = app.contacts.get_contacts(account, jid)
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