mirror of
https://gitlab.opencode.de/bwi/bundesmessenger/clients/bundesmessenger-ios.git
synced 2026-04-20 08:32:53 +02:00
@@ -16,6 +16,7 @@
|
||||
*/
|
||||
|
||||
#import "RoomPreviewData.h"
|
||||
#import <MatrixSDK-Swift.h>
|
||||
|
||||
@implementation RoomPreviewData
|
||||
|
||||
@@ -79,6 +80,21 @@
|
||||
return self;
|
||||
}
|
||||
|
||||
- (instancetype)initWithSpaceChildInfo:(MXSpaceChildInfo*)childInfo andSession:(MXSession*)mxSession
|
||||
{
|
||||
self = [self init];
|
||||
if (self)
|
||||
{
|
||||
_roomId = childInfo.childRoomId;
|
||||
_roomName = childInfo.name;
|
||||
_roomAvatarUrl = childInfo.avatarUrl;
|
||||
_roomTopic = childInfo.topic;
|
||||
_numJoinedMembers = childInfo.activeMemberCount;
|
||||
_mxSession = mxSession;
|
||||
}
|
||||
return self;
|
||||
}
|
||||
|
||||
- (void)dealloc
|
||||
{
|
||||
if (_roomDataSource)
|
||||
|
||||
Reference in New Issue
Block a user