mirror of
https://gitlab.opencode.de/bwi/bundesmessenger/clients/bundesmessenger-ios.git
synced 2026-04-23 01:52:44 +02:00
Handle the room display name and its avatar at the room summary level.
- Update the room display name and its avatar url when the Room Summary is updated on state events change (see `[session: updateRoomSummary: withStateEvents:]`). - Store the riot display room name and its avatar url in the Room Summary. - Add a new category `MXRoomSummary+Riot` to handle avatar display. TODO: Increase file store version in `MXFileStore.h`.
This commit is contained in:
@@ -18,7 +18,7 @@
|
||||
#import "RoomTableViewCell.h"
|
||||
|
||||
#import "RiotDesignValues.h"
|
||||
#import "MXRoom+Riot.h"
|
||||
#import "MXRoomSummary+Riot.h"
|
||||
|
||||
@implementation RoomTableViewCell
|
||||
|
||||
@@ -50,9 +50,9 @@
|
||||
|
||||
- (void)render:(MXRoom *)room
|
||||
{
|
||||
[room setRoomAvatarImageIn:self.avatarImageView];
|
||||
[room.summary setRoomAvatarImageIn:self.avatarImageView];
|
||||
|
||||
self.titleLabel.text = room.riotDisplayname;
|
||||
self.titleLabel.text = room.summary.displayname;
|
||||
|
||||
self.directRoomBorderView.hidden = !room.isDirect;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user