Metacontacts and groups collapse state not properly restored after roster filtering
Bug description
There are two issues with roster contact filtering.
-
Collapsed metacontacts that are expanded and shown during roster filtering (typing while in roster) remain expanded after the search/filter is over.
-
Collapsed groups that are expanded to show filtered contacts result having an incorrect collapsed state sign/icon afterwards. This happens only when they (all their contacts) are filtered out as the search progresses.
Steps to reproduce
-
Use roster filter so as to search in collapsed metacontacts. When the search is over, all searched and previously collapsed metacontacts are now expanded. For example: join two contacts with a same name and search for them afrerwards.
-
Collapse contact groups and use roster filter. After the search, all groups that are shown after the initial keystroke are: a) showing expanded sign (though the group is collapsed) if they become hidden later during the search; b) showing correct collapsed sign if they remain visible untill the search is over.
Software versions
OS version: GNU/Linux Debian 8.4 stable/testing/unstable (32bit)
GTK version: 2.24
PyGTK version: 2.24