Vector manages only one account by now.

We do not have the multi account UI.

-> the low-priority / favorites must be merged ?
-> each account recents must be in a dedicated section / sub-section.
This commit is contained in:
yannick
2015-12-03 09:37:45 +01:00
parent 0431cf654c
commit 3edb07f011
+11 -2
View File
@@ -249,8 +249,16 @@
- (void)refreshRoomsSections
{
// displayedRecentsDataSourceArray.count
// TODO manage multi accounts
if (displayedRecentsDataSourceArray.count > 1)
{
for(int i = 0; i < 10; i++)
{
NSLog(@">>>>>>>>>> RecentsDataSource manages only one account");
}
}
favoritesCells = [[NSMutableArray alloc] init];
conversationCells = [[NSMutableArray alloc] init];
lowPriorityCells = [[NSMutableArray alloc] init];
@@ -328,7 +336,8 @@
- (void)dataSource:(MXKDataSource*)dataSource didCellChange:(id)changes
{
// multi accounts management
[self refreshInterleavedCellDataArray:dataSource];
// TODO add a dedicated merge method
//[self refreshInterleavedCellDataArray:dataSource];
// refresh the
[self refreshRoomsSections];