27 lines
512 B
Objective-C
27 lines
512 B
Objective-C
//
|
|
// TLConversation+TLUser.m
|
|
// TLChat
|
|
//
|
|
// Created by 李伯坤 on 16/3/21.
|
|
// Copyright © 2016年 李伯坤. All rights reserved.
|
|
//
|
|
|
|
#import "TLConversation+TLUser.h"
|
|
|
|
@implementation TLConversation (TLUser)
|
|
|
|
- (void)updateUserInfo:(TLUser *)user
|
|
{
|
|
self.partnerName = user.showName;
|
|
self.avatarPath = user.avatarPath;
|
|
self.avatarURL = user.avatarURL;
|
|
}
|
|
|
|
- (void)updateGroupInfo:(TLGroup *)group
|
|
{
|
|
self.partnerName = group.groupName;
|
|
self.avatarPath = group.groupAvatarPath;
|
|
}
|
|
|
|
@end
|