Merge pull request #1269 from vector-im/no_low_priority_room_in_people_tab

UX rework: low priority people rooms shouldn't be displayed in the pe…
This commit is contained in:
manuroe 2017-06-08 15:20:04 +02:00 committed by GitHub
commit a9b69986bd

View file

@ -1009,8 +1009,8 @@ NSString *const kRecentsDataSourceTapOnDirectoryServerChange = @"kRecentsDataSou
}
else if (_recentsDataSourceMode == RecentsDataSourceModePeople)
{
// Keep only the direct rooms.
if (room.isDirect)
// Keep only the direct rooms which are not low priority
if (room.isDirect && room.accountData.tags[kMXRoomTagLowPriority])
{
if (room.state.membership == MXMembershipInvite)
{