diff options
author | Vitaly Takmazov | 2018-12-05 00:02:35 +0300 |
---|---|---|
committer | Vitaly Takmazov | 2018-12-05 00:02:35 +0300 |
commit | e6a665d34eae11a75bf1a0a1e71af214ee52ce55 (patch) | |
tree | aa8d5b1964dd21edf893390ea796e6e2117419c0 | |
parent | 63e22269ec2d0295a7b170a88330a712d883eb24 (diff) |
Cleanup analyze warnings
-rw-r--r-- | Juick/ViewControllers/MessagesViewController.m | 1 | ||||
-rw-r--r-- | Juick/Views/ConversationCell.m | 7 |
2 files changed, 2 insertions, 6 deletions
diff --git a/Juick/ViewControllers/MessagesViewController.m b/Juick/ViewControllers/MessagesViewController.m index 77406a6..265df51 100644 --- a/Juick/ViewControllers/MessagesViewController.m +++ b/Juick/ViewControllers/MessagesViewController.m @@ -83,6 +83,7 @@ - (void)viewDidLoad { + [super viewDidLoad]; self.dataLoading = YES; [self.view setBackgroundColor:[ColorScheme mainBackground]]; [self.tableView registerNib:[UINib nibWithNibName:@"MessageCell" bundle:[NSBundle mainBundle]] forCellReuseIdentifier:@"messageCell"]; diff --git a/Juick/Views/ConversationCell.m b/Juick/Views/ConversationCell.m index 4a0be13..bcf99e7 100644 --- a/Juick/Views/ConversationCell.m +++ b/Juick/Views/ConversationCell.m @@ -11,16 +11,11 @@ @implementation ConversationCell -- (void)awakeFromNib { - [super awakeFromNib]; - // Initialization code -} - -(void) configureWithChat:(Chat *)chat { self.chatName.textColor = [ColorScheme linkColor]; self.chatName.text = chat.uname; self.lastMessage.text = chat.lastMessageText; - self.unreadMarker.hidden = chat.unreadCount > 0; + self.unreadMarker.hidden = true; __weak UIImageView *weakAvatar = self.avatar; [self.avatar setImageWithURLRequest:[NSURLRequest requestWithURL:[NSURL URLWithString:chat.avatar]] placeholderImage:nil success:^(NSURLRequest * _Nonnull request, NSHTTPURLResponse * _Nullable response, UIImage * _Nonnull image) { [UIView transitionWithView:weakAvatar |