mirror of
https://gitlab.opencode.de/bwi/bundesmessenger/clients/bundesmessenger-ios.git
synced 2026-05-01 05:36:57 +02:00
display_room_avatars
Update the room avatar management with the updated Matrix Kit
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user