Prepare UX rework:

- Update correctly tab bar title
- Add Invites section in the Rooms tab
This commit is contained in:
Giom Foret
2017-04-06 15:49:47 +02:00
parent 6a3ad6b0fb
commit 62b20e0682
5 changed files with 16 additions and 12 deletions
+6 -2
View File
@@ -602,8 +602,12 @@
id<MXKRecentCellDataStoring> recentCellDataStoring = [recentsDataSource cellDataAtIndex:index];
MXRoom* room = recentCellDataStoring.roomSummary.room;
// Keep only the rooms without tag
if (!room.accountData.tags.count)
// Keep only the invites and the rooms without tag
if (room.state.membership == MXMembershipInvite)
{
[invitesCellDataArray addObject:recentCellDataStoring];
}
else if (!room.accountData.tags.count)
{
[conversationCellDataArray addObject:recentCellDataStoring];
}