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
+15
View File
@@ -18,10 +18,25 @@
#import "EventFormatter.h"
#import "AvatarGenerator.h"
@implementation RoomBubbleCellData
#pragma mark -
- (instancetype)initWithEvent:(MXEvent *)event andRoomState:(MXRoomState *)roomState andRoomDataSource:(MXKRoomDataSource *)roomDataSource2
{
self = [super initWithEvent:event andRoomState:roomState andRoomDataSource:roomDataSource2];
if (self)
{
// use the matrix style placeholder
self.senderAvatarPlaceholder = [AvatarGenerator generateRoomMemberAvatar:self.senderId displayName:self.senderDisplayName];
}
return self;
}
- (NSAttributedString*)attributedTextMessage
{
if (!attributedTextMessage.length && bubbleComponents.count)