2017-09-14 14:00:50 +00:00
|
|
|
/*
|
2024-09-25 10:24:52 +00:00
|
|
|
Copyright 2024 New Vector Ltd.
|
|
|
|
Copyright 2017 Vector Creations Ltd
|
2017-09-14 14:00:50 +00:00
|
|
|
|
2024-09-25 10:24:52 +00:00
|
|
|
SPDX-License-Identifier: AGPL-3.0-only
|
|
|
|
Please see LICENSE in the repository root for full details.
|
2017-09-14 14:00:50 +00:00
|
|
|
*/
|
|
|
|
|
2021-11-30 15:09:53 +00:00
|
|
|
#import "MatrixKit.h"
|
2023-03-13 16:18:11 +00:00
|
|
|
#import "RoomEncryptionTrustLevel.h"
|
2020-01-31 13:59:54 +00:00
|
|
|
|
2017-09-14 14:00:50 +00:00
|
|
|
/**
|
|
|
|
Define a `MXRoomSummary` category at Riot level.
|
|
|
|
*/
|
|
|
|
@interface MXRoomSummary (Riot)
|
|
|
|
|
2021-09-01 15:12:08 +00:00
|
|
|
@property(nonatomic, readonly) BOOL isJoined;
|
|
|
|
|
2017-09-14 14:00:50 +00:00
|
|
|
/**
|
|
|
|
Set the room avatar in the dedicated MXKImageView.
|
|
|
|
The riot style implies to use in order :
|
|
|
|
1 - the default avatar if there is one
|
|
|
|
2 - the member avatar for < 3 members rooms
|
|
|
|
3 - the first letter of the room name.
|
|
|
|
|
|
|
|
@param mxkImageView the destinated MXKImageView.
|
|
|
|
*/
|
|
|
|
- (void)setRoomAvatarImageIn:(MXKImageView*)mxkImageView;
|
|
|
|
|
2020-01-31 13:59:54 +00:00
|
|
|
/**
|
|
|
|
Get the trust level in the room.
|
|
|
|
|
|
|
|
@return the trust level.
|
|
|
|
*/
|
|
|
|
- (RoomEncryptionTrustLevel)roomEncryptionTrustLevel;
|
|
|
|
|
2017-09-14 14:00:50 +00:00
|
|
|
@end
|