summaryrefslogtreecommitdiff
path: root/Juick/Views/ConversationCell.m
diff options
context:
space:
mode:
Diffstat (limited to 'Juick/Views/ConversationCell.m')
-rw-r--r--Juick/Views/ConversationCell.m31
1 files changed, 0 insertions, 31 deletions
diff --git a/Juick/Views/ConversationCell.m b/Juick/Views/ConversationCell.m
deleted file mode 100644
index 360ed2b..0000000
--- a/Juick/Views/ConversationCell.m
+++ /dev/null
@@ -1,31 +0,0 @@
-//
-// ConversationCell.m
-// Juick
-//
-// Created by Vitaly Takmazov on 04/03/2018.
-// Copyright © 2018 com.juick. All rights reserved.
-//
-
-#import "ConversationCell.h"
-
-@implementation ConversationCell
-
--(void) configureWithChat:(Chat *)chat {
- self.selectionStyle = UITableViewCellSelectionStyleNone;
- self.chatName.textColor = [UIColor colorNamed:@"Title"];
- self.chatName.text = chat.uname;
- self.lastMessage.text = chat.lastMessageText;
- self.unreadMarker.hidden = false;
- __weak UIImageView *weakAvatar = self.avatar;
- [[AppDelegate shared].api fetchImageWithURL:[NSURL URLWithString:chat.avatar] callback:^(NSData *data) {
- [UIView transitionWithView:weakAvatar
- duration:0.3
- options:UIViewAnimationOptionTransitionCrossDissolve
- animations:^{
- weakAvatar.image = [UIImage imageWithData:data];
- }
- completion:nil];
- }];
-}
-
-@end