MESSENGER-4802 personal notes in favorites

This commit is contained in:
Frank Rotermund
2023-09-07 12:53:46 +00:00
parent 581be7471b
commit d27b5d8da9
13 changed files with 60 additions and 71 deletions
+2 -4
View File
@@ -398,7 +398,6 @@
|| (sectionType == RecentsDataSourceSectionTypePeople && !recentsDataSource.recentsListService.peopleRoomListData.counts.numberOfRooms)
|| (sectionType == RecentsDataSourceSectionTypeSecureBackupBanner)
|| (sectionType == RecentsDataSourceSectionTypeCrossSigningBanner)
|| (sectionType == RecentsDataSourceSectionTypePersonalNotes)
)
{
return [recentsDataSource tableView:tableView cellForRowAtIndexPath:indexPath];
@@ -502,8 +501,7 @@
RecentsDataSourceSectionType sectionType = [recentsDataSource.sections sectionTypeForSectionIndex:indexPath.section];
if ((sectionType == RecentsDataSourceSectionTypeConversation && !recentsDataSource.recentsListService.conversationRoomListData.counts.numberOfRooms)
|| (sectionType == RecentsDataSourceSectionTypePeople && !recentsDataSource.recentsListService.peopleRoomListData.counts.numberOfRooms)
|| (sectionType == RecentsDataSourceSectionTypePersonalNotes))
|| (sectionType == RecentsDataSourceSectionTypePeople && !recentsDataSource.recentsListService.peopleRoomListData.counts.numberOfRooms))
{
return [recentsDataSource cellHeightAtIndexPath:indexPath];
}
@@ -582,7 +580,7 @@
{
[self showCrossSigningSetup];
}
else if (sectionType == RecentsDataSourceSectionTypeAllChats || sectionType == RecentsDataSourceSectionTypePersonalNotes)
else if (sectionType == RecentsDataSourceSectionTypeAllChats)
{
[super tableView:tableView didSelectRowAtIndexPath:indexPath];
}