swift: Add AuthServiceSelector.messages (mistakenly .attachments)

.attachments continues to work for now but will be removed in the
future.
This commit is contained in:
Jordan Rose 2026-04-28 16:22:26 -07:00
parent ce7b55a3af
commit 309a220fe3
3 changed files with 5 additions and 1 deletions

View File

@ -1,2 +1,3 @@
v0.93.1
- Swift: Added `AuthServiceSelector.messages` (mistakenly `.attachments`). `.attachments` will be removed in a later release.

View File

@ -169,5 +169,8 @@ extension AuthenticatedChatConnection: AuthMessagesService {
}
extension AuthServiceSelector where Self == AuthServiceSelectorHelper<any AuthMessagesService> {
public static var messages: Self { .init() }
/// Soft-deprecated, use ``messages`` instead.
public static var attachments: Self { .init() }
}

View File

@ -13,7 +13,7 @@ import XCTest
private let recipientUuid = UUID(uuidString: "4FCFE887-A600-40CD-9AB7-FD2A695E9981")!
class AuthMessagesServiceTests: AuthChatServiceTestBase<any AuthMessagesService> {
override class var selector: SelectorCheck { .attachments }
override class var selector: SelectorCheck { .messages }
func testGetUploadForm() async throws {
let api = self.api