make metacontact visible when we use roster filter, even if big brother is filtered. Fixes #7137

This commit is contained in:
Yann Leboulanger 2012-04-17 11:49:48 +02:00
parent 43b2a1b4f0
commit c3574bce51
1 changed files with 6 additions and 0 deletions

View File

@ -1598,6 +1598,12 @@ class RosterWindow:
return False
if type_ == 'contact':
if self.rfilter_enabled:
if model.iter_has_child(titer):
iter_c = model.iter_children(titer)
while iter_c:
if self.rfilter_string in model[iter_c][C_NAME].lower():
return True
iter_c = model.iter_next(iter_c)
return self.rfilter_string in model[titer][C_NAME].lower()
if gajim.config.get('showoffline'):
return True