display_room_avatars

Update the room avatar management with the updated Matrix Kit
This commit is contained in:
yannick
2015-12-04 16:58:18 +01:00
parent 74de3eeb0f
commit acf8b11322
4 changed files with 16 additions and 23 deletions
@@ -418,24 +418,5 @@
}
}
#pragma mark - MXKRoomBubbleTableViewCell delegate
- (UIImage*)pictureViewImage:(MXKRoomBubbleTableViewCell*)cell
{
// replace the identicon icon by the Vector style one
if (!cell.bubbleData.senderAvatarUrl || ([cell.bubbleData.senderAvatarUrl rangeOfString:@"identicon"].location != NSNotFound))
{
return [AvatarGenerator generateRoomMemberAvatar:cell.bubbleData.senderId displayName:cell.bubbleData.senderDisplayName];
}
return nil;
}
- (UIImage*)pictureViewPreviewImage:(MXKRoomBubbleTableViewCell*)cell
{
return [AvatarGenerator generateRoomMemberAvatar:cell.bubbleData.senderId displayName:cell.bubbleData.senderDisplayName];
}
@end