From e2fd2c91732bd87bf4e559dfad789c27f7e2be36 Mon Sep 17 00:00:00 2001 From: Michael Kirk Date: Mon, 11 Mar 2019 09:47:49 -0700 Subject: [PATCH] CR: return immutable array --- Signal/src/ViewControllers/HomeView/HomeViewController.m | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Signal/src/ViewControllers/HomeView/HomeViewController.m b/Signal/src/ViewControllers/HomeView/HomeViewController.m index fa7265bde..4ebfde9c9 100644 --- a/Signal/src/ViewControllers/HomeView/HomeViewController.m +++ b/Signal/src/ViewControllers/HomeView/HomeViewController.m @@ -480,10 +480,10 @@ typedef NS_ENUM(NSInteger, HomeViewControllerSection) { if ([localNumber isEqual:account.recipientId]) { continue; } - [accounts addObject:account]; if (accounts.count >= 3) { - return accounts; + break; } + [accounts addObject:account]; } return [accounts copy];