summaryrefslogtreecommitdiff
path: root/Juick/Views/ConversationCell.m
blob: 750ab4589ac5aa33c09bf85402fc7c3a4194ba4a (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
//
//  ConversationCell.m
//  Juick
//
//  Created by Vitaly Takmazov on 04/03/2018.
//  Copyright © 2018 com.juick. All rights reserved.
//

#import "ConversationCell.h"
@import YYWebImage;

@implementation ConversationCell

- (void)awakeFromNib {
    [super awakeFromNib];
    // Initialization code
}

-(void) configureWithChat:(Chat *)chat {
    self.chatName.text = chat.uname;
    self.lastMessage.text = @"";
    self.unreadMarker.text = @"";
    [self.avatar yy_setImageWithURL:[NSURL URLWithString:[NSString stringWithFormat:@"https://i.juick.com/a/%d.png", [chat.uid intValue]]] options:YYWebImageOptionProgressiveBlur|YYWebImageOptionSetImageWithFadeAnimation];
}

@end