mirror of
https://gitlab.opencode.de/bwi/bundesmessenger/clients/bundesmessenger-ios.git
synced 2026-04-22 17:42:45 +02:00
UX rework: low priority people rooms shouldn't be displayed in the people tab
This commit is contained in:
@@ -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];
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user