NSE user agent support (#1507)

This commit is contained in:
Mauro
2023-08-17 15:11:34 +02:00
committed by GitHub
parent a11325bcb4
commit 8188fd2d2a
8 changed files with 31 additions and 9 deletions
+1
View File
@@ -30,6 +30,7 @@ final class NSEUserSession {
baseClient = try ClientBuilder()
.basePath(path: URL.sessionsBaseDirectory.path)
.username(username: credentials.userID)
.userAgent(userAgent: UserAgentBuilder.makeASCIIUserAgent())
.build()
try baseClient.restoreSession(session: credentials.restorationToken.session)
+4
View File
@@ -38,6 +38,7 @@ targets:
- package: Collections
- package: Compound
- package: DesignKit
- package: DeviceKit
info:
path: ../SupportingFiles/Info.plist
@@ -91,3 +92,6 @@ targets:
- path: ../../ElementX/Sources/Other/UserPreference.swift
- path: ../../ElementX/Sources/Other/SharedUserDefaultsKeys.swift
- path: ../../ElementX/Sources/Other/SwiftUI/Views/PlaceholderAvatarImage.swift
- path: ../../ElementX/Sources/Other/UserAgentBuilder.swift
- path: ../../ElementX/Sources/Other/Extensions/String.swift
- path: ../../ElementX/Sources/Other/Extensions/LayoutDirection.swift