mirror of
https://github.com/Novaloop-AG/element-x-ios.git
synced 2026-11-03 16:10:20 +00:00
Rename SpaceRoomProxy to SpaceServiceRoom and stop proxying the struct. (#4952)
* Rename SpaceRoomProxy to SpaceServiceRoom. The underlying type is a struct, we don't need to proxy it. * Actually stop proxying the SpaceRoom.
This commit is contained in:
@@ -98,17 +98,17 @@ extension RoomPreviewProxyMock {
|
||||
underlyingOwnMembershipDetails = roomMembershipDetails
|
||||
}
|
||||
|
||||
convenience init(spaceRoomProxy: SpaceRoomProxyProtocol) {
|
||||
self.init(Configuration(roomID: spaceRoomProxy.id,
|
||||
canonicalAlias: spaceRoomProxy.canonicalAlias ?? "",
|
||||
name: spaceRoomProxy.name,
|
||||
topic: spaceRoomProxy.topic ?? "",
|
||||
avatarURL: spaceRoomProxy.avatarURL?.absoluteString ?? "",
|
||||
numJoinedMembers: UInt64(spaceRoomProxy.joinedMembersCount),
|
||||
numActiveMembers: UInt64(spaceRoomProxy.joinedMembersCount),
|
||||
roomType: spaceRoomProxy.isSpace ? .space : .room,
|
||||
convenience init(spaceServiceRoom: SpaceServiceRoomProtocol) {
|
||||
self.init(Configuration(roomID: spaceServiceRoom.id,
|
||||
canonicalAlias: spaceServiceRoom.canonicalAlias ?? "",
|
||||
name: spaceServiceRoom.name,
|
||||
topic: spaceServiceRoom.topic ?? "",
|
||||
avatarURL: spaceServiceRoom.avatarURL?.absoluteString ?? "",
|
||||
numJoinedMembers: UInt64(spaceServiceRoom.joinedMembersCount),
|
||||
numActiveMembers: UInt64(spaceServiceRoom.joinedMembersCount),
|
||||
roomType: spaceServiceRoom.isSpace ? .space : .room,
|
||||
membership: nil,
|
||||
joinRule: spaceRoomProxy.joinRule ?? .restricted(rules: []),
|
||||
joinRule: spaceServiceRoom.joinRule ?? .restricted(rules: []),
|
||||
isDirect: false))
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user