Skip to content

Commit

Permalink
Merge pull request #1682 from nextcloud/improve-room-search-results-t…
Browse files Browse the repository at this point in the history
…able-view

Small fix and design improvement for rooms search results table view
  • Loading branch information
SystemKeeper authored Jun 27, 2024
2 parents c800620 + d48a760 commit 1678bc5
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion NextcloudTalk/RoomSearchTableViewController.m
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ - (void)viewDidLoad
self.tableView.separatorInset = UIEdgeInsetsMake(0, 52, 0, 0);
self.tableView.separatorInsetReference = UITableViewSeparatorInsetFromAutomaticInsets;
// Contacts placeholder view
_roomSearchBackgroundView = [[PlaceholderView alloc] init];
_roomSearchBackgroundView = [[PlaceholderView alloc] initForTableViewStyle:UITableViewStyleInsetGrouped];
[_roomSearchBackgroundView setImage:[UIImage imageNamed:@"conversations-placeholder"]];
[_roomSearchBackgroundView.placeholderTextView setText:NSLocalizedString(@"No results found", nil)];
[_roomSearchBackgroundView.placeholderView setHidden:YES];
Expand Down
4 changes: 2 additions & 2 deletions NextcloudTalk/RoomsTableViewController.m
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,7 @@ - (void)viewDidLoad

self.tableView.tableFooterView = [[UIView alloc] initWithFrame:CGRectZero];

_resultTableViewController = [[RoomSearchTableViewController alloc] init];
_resultTableViewController = [[RoomSearchTableViewController alloc] initWithStyle:UITableViewStyleInsetGrouped];
_searchController = [[UISearchController alloc] initWithSearchResultsController:_resultTableViewController];
_searchController.searchResultsUpdater = self;
[_searchController.searchBar sizeToFit];
Expand Down Expand Up @@ -1270,7 +1270,7 @@ - (NSInteger)tableView:(UITableView *)tableView numberOfRowsInSection:(NSInteger

- (CGFloat)tableView:(UITableView *)tableView heightForRowAtIndexPath:(NSIndexPath *)indexPath
{
if (indexPath.section == kRoomsSectionPendingFederationInvitation) {
if (tableView == self.tableView && indexPath.section == kRoomsSectionPendingFederationInvitation) {
return RoomInvitationViewCell.CellHeight;
}

Expand Down

0 comments on commit 1678bc5

Please sign in to comment.