pr suggestions

This commit is contained in:
Mauro Romito
2026-04-14 13:56:05 +02:00
committed by Mauro
parent facba008e7
commit a40fab5f5e
10 changed files with 115 additions and 130 deletions
@@ -0,0 +1,20 @@
//
// Copyright 2026 Element Creations Ltd.
//
// SPDX-License-Identifier: AGPL-3.0-only OR LicenseRef-Element-Commercial.
// Please see LICENSE files in the repository root for full details.
//
import Combine
import Foundation
struct RoomLiveLocationServiceMockConfiguration {
var shares: [LiveLocationShare] = []
}
extension RoomLiveLocationServiceMock {
convenience init(_ configuration: RoomLiveLocationServiceMockConfiguration = .init()) {
self.init()
liveLocationsPublisher = CurrentValueSubject(configuration.shares).eraseToAnyPublisher()
}
}