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
@@ -114,7 +114,7 @@ class UserSessionStore: UserSessionStoreProtocol {
.basePath(path: baseDirectory.path)
.username(username: credentials.userID)
.homeserverUrl(url: credentials.restorationToken.session.homeserverUrl)
.userAgent(userAgent: UserAgentBuilder.makeASCIIUserAgent() ?? "unknown")
.userAgent(userAgent: UserAgentBuilder.makeASCIIUserAgent())
.serverVersions(versions: ["v1.0", "v1.1", "v1.2", "v1.3", "v1.4", "v1.5"]) // FIXME: Quick and dirty fix for stopping version requests on startup https://github.com/matrix-org/matrix-rust-sdk/pull/1376
do {