swift: Add AuthServiceSelector.messages (mistakenly .attachments)
.attachments continues to work for now but will be removed in the future.
This commit is contained in:
parent
ce7b55a3af
commit
309a220fe3
@ -1,2 +1,3 @@
|
||||
v0.93.1
|
||||
|
||||
- Swift: Added `AuthServiceSelector.messages` (mistakenly `.attachments`). `.attachments` will be removed in a later release.
|
||||
|
||||
@ -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() }
|
||||
}
|
||||
|
||||
@ -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
|
||||
|
||||
Loading…
Reference in New Issue
Block a user