mirror of
https://gitlab.opencode.de/bwi/bundesmessenger/clients/bundesmessenger-ios.git
synced 2026-04-19 08:03:50 +02:00
Configured and applied SwiftFormat
This commit is contained in:
committed by
Stefan Ceriu
parent
ff2e6ddfa7
commit
43c28d23b7
+8
-10
@@ -1,4 +1,4 @@
|
||||
//
|
||||
//
|
||||
// Copyright 2021 New Vector Ltd
|
||||
//
|
||||
// Licensed under the Apache License, Version 2.0 (the "License");
|
||||
@@ -14,8 +14,8 @@
|
||||
// limitations under the License.
|
||||
//
|
||||
|
||||
import Foundation
|
||||
import Combine
|
||||
import Foundation
|
||||
|
||||
class MockTemplateUserProfileService: TemplateUserProfileServiceProtocol {
|
||||
var presenceSubject: CurrentValueSubject<TemplateUserProfilePresence, Never>
|
||||
@@ -23,19 +23,17 @@ class MockTemplateUserProfileService: TemplateUserProfileServiceProtocol {
|
||||
let userId: String
|
||||
let displayName: String?
|
||||
let avatarUrl: String?
|
||||
init(
|
||||
userId: String = "@alice:matrix.org",
|
||||
displayName: String? = "Alice",
|
||||
avatarUrl: String? = "mxc://matrix.org/VyNYAgahaiAzUoOeZETtQ",
|
||||
presence: TemplateUserProfilePresence = .offline
|
||||
) {
|
||||
init(userId: String = "@alice:matrix.org",
|
||||
displayName: String? = "Alice",
|
||||
avatarUrl: String? = "mxc://matrix.org/VyNYAgahaiAzUoOeZETtQ",
|
||||
presence: TemplateUserProfilePresence = .offline) {
|
||||
self.userId = userId
|
||||
self.displayName = displayName
|
||||
self.avatarUrl = avatarUrl
|
||||
self.presenceSubject = CurrentValueSubject<TemplateUserProfilePresence, Never>(presence)
|
||||
presenceSubject = CurrentValueSubject<TemplateUserProfilePresence, Never>(presence)
|
||||
}
|
||||
|
||||
func simulateUpdate(presence: TemplateUserProfilePresence) {
|
||||
self.presenceSubject.value = presence
|
||||
presenceSubject.value = presence
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user