diff options
author | Vitaly Takmazov | 2017-12-10 11:37:11 +0300 |
---|---|---|
committer | Vitaly Takmazov | 2017-12-10 11:37:11 +0300 |
commit | 8a9a7fb25405c3662ae9b3b58263e9088baa7082 (patch) | |
tree | 119df65cd567ff107fcb4f5dfda932ce436d6d83 /Juick/ViewControllers/DiscoverViewController.m | |
parent | 2d2bedd9499ba3c9ac64408d60f96c7c6fd9ce8d (diff) |
clear params on feed switch
Diffstat (limited to 'Juick/ViewControllers/DiscoverViewController.m')
-rw-r--r-- | Juick/ViewControllers/DiscoverViewController.m | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/Juick/ViewControllers/DiscoverViewController.m b/Juick/ViewControllers/DiscoverViewController.m index b0d965c..2a109d4 100644 --- a/Juick/ViewControllers/DiscoverViewController.m +++ b/Juick/ViewControllers/DiscoverViewController.m @@ -60,12 +60,14 @@ AppDelegate *appDelegate; [filterAlert addAction:[UIAlertAction actionWithTitle:@"Cancel" style:UIAlertActionStyleCancel handler:nil]]; [filterAlert addAction:[UIAlertAction actionWithTitle:@"My feed" style:UIAlertActionStyleDefault handler:^(UIAlertAction * _Nonnull action) { self.path = [APIClient feedUrl]; + self.params = nil; [self.messages removeAllObjects]; [self.tableView reloadData]; [self refreshData:NO]; }]]; [filterAlert addAction:[UIAlertAction actionWithTitle:@"Discover" style:UIAlertActionStyleDefault handler:^(UIAlertAction * _Nonnull action) { self.path = [APIClient messagesUrl]; + self.params = nil; [self.messages removeAllObjects]; [self.tableView reloadData]; [self refreshData:NO]; |