mirror of
https://gitlab.opencode.de/bwi/bundesmessenger/clients/bundesmessenger-ios.git
synced 2026-04-30 13:16:58 +02:00
display_room_avatars
-> display the room avatars in the chat room
This commit is contained in:
@@ -30,6 +30,8 @@
|
||||
#import "SegmentedViewController.h"
|
||||
#import "RoomSettingsViewController.h"
|
||||
|
||||
#import "AvatarGenerator.h"
|
||||
|
||||
@interface RoomViewController ()
|
||||
{
|
||||
// the user taps on a member thumbnail
|
||||
@@ -414,5 +416,24 @@
|
||||
}
|
||||
}
|
||||
|
||||
#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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user