Revert "allow copying blocked user id"

This reverts commit f6f6538bd6.
This commit is contained in:
Mauro Romito
2026-08-26 13:44:15 +02:00
parent f6f6538bd6
commit 142529ad69
4 changed files with 0 additions and 34 deletions
@@ -10,7 +10,6 @@ import Combine
@testable import ElementX
import Foundation
import Testing
import UIKit
@MainActor
struct BlockedUsersScreenViewModelTests {
@@ -43,22 +42,4 @@ struct BlockedUsersScreenViewModelTests {
#expect(!viewModel.context.viewState.blockedUsers.isEmpty)
#expect(clientProxy.profileForCalled)
}
@Test
func copyUserID() throws {
let clientProxy = ClientProxyMock(.init(userID: RoomMemberProxyMock.mockMe.userID))
let userIndicatorController = UserIndicatorControllerMock()
let viewModel = BlockedUsersScreenViewModel(hideProfiles: true,
userSession: UserSessionMock(.init(clientProxy: clientProxy)),
userIndicatorController: userIndicatorController)
let user = try #require(viewModel.context.viewState.blockedUsers.first)
UIPasteboard.general.string = ""
viewModel.context.send(viewAction: .copyUserID(user))
#expect(UIPasteboard.general.string == user.id)
#expect(userIndicatorController.submitIndicatorDelayReceivedArguments?.indicator.title == L10n.commonCopiedToClipboard)
}
}