Fix presence problem when shared groups can be seen by a common non-shared group and both users belong to such group

Description

Configuration:
1) UserA belongs to shared group GroupA
2) UserB belongs to shared group GroupB
3) GroupA can be seen by GroupC
4) GroupB can be seen by GroupC
5) UserA and UserB belong to GroupC

Under this setup both UserA and UserB should have a presence of type BOTH.

Environment

None
Fixed

Assignee

Gaston Dombiak

Reporter

Gaston Dombiak