UX rework: low priority people rooms shouldn't be displayed in the people tab

This commit is contained in:
manuroe
2017-06-08 15:19:34 +02:00
committed by GitHub
parent e86bea831f
commit ba4cc56708
+7 -10
View File
@@ -1010,18 +1010,15 @@ NSString *const kRecentsDataSourceTapOnDirectoryServerChange = @"kRecentsDataSou
else if (_recentsDataSourceMode == RecentsDataSourceModePeople)
{
// Keep only the direct rooms which are not low priority
if (room.isDirect)
if (room.isDirect && room.accountData.tags[kMXRoomTagLowPriority])
{
if (!recentCellDataStoring.roomSummary.room.accountData.tags[kMXRoomTagLowPriority])
if (room.state.membership == MXMembershipInvite)
{
if (room.state.membership == MXMembershipInvite)
{
[invitesCellDataArray addObject:recentCellDataStoring];
}
else
{
[conversationCellDataArray addObject:recentCellDataStoring];
}
[invitesCellDataArray addObject:recentCellDataStoring];
}
else
{
[conversationCellDataArray addObject:recentCellDataStoring];
}
}
}