mirror of
https://gitlab.opencode.de/bwi/bundesmessenger/clients/bundesmessenger-ios.git
synced 2026-04-21 17:12:45 +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:
@@ -26,6 +26,7 @@
|
||||
#import "Tools.h"
|
||||
|
||||
#import "MXRoom+Riot.h"
|
||||
#import "MXRoomSummary+Riot.h"
|
||||
|
||||
#import "AppDelegate.h"
|
||||
|
||||
@@ -1998,7 +1999,7 @@ NSString *const kRoomSettingsAdvancedE2eEnabledCellViewIdentifier = @"kRoomSetti
|
||||
}
|
||||
else
|
||||
{
|
||||
[mxRoom setRoomAvatarImageIn:roomPhotoCell.mxkImageView];
|
||||
[mxRoom.summary setRoomAvatarImageIn:roomPhotoCell.mxkImageView];
|
||||
|
||||
roomPhotoCell.userInteractionEnabled = (oneSelfPowerLevel >= [powerLevels minimumPowerLevelForSendingEventAsStateEvent:kMXEventTypeStringRoomAvatar]);
|
||||
roomPhotoCell.mxkImageView.alpha = roomPhotoCell.userInteractionEnabled ? 1.0f : 0.5f;
|
||||
|
||||
Reference in New Issue
Block a user