From 5d55f6d78c1891db64c48dce60e09edc05ab5962 Mon Sep 17 00:00:00 2001 From: Bruno Windels Date: Mon, 15 Mar 2021 16:55:14 +0100 Subject: [PATCH] log app version when opening session --- src/matrix/SessionContainer.js | 1 + src/platform/web/Platform.js | 4 ++++ 2 files changed, 5 insertions(+) diff --git a/src/matrix/SessionContainer.js b/src/matrix/SessionContainer.js index 76212aca..efbf70e3 100644 --- a/src/matrix/SessionContainer.js +++ b/src/matrix/SessionContainer.js @@ -146,6 +146,7 @@ export class SessionContainer { } async _loadSessionInfo(sessionInfo, isNewLogin, log) { + log.set("appVersion", this._platform.version); const clock = this._platform.clock; this._sessionStartedByReconnector = false; this._status.set(LoadStatus.Loading); diff --git a/src/platform/web/Platform.js b/src/platform/web/Platform.js index e4ad3a88..a1e8e52c 100644 --- a/src/platform/web/Platform.js +++ b/src/platform/web/Platform.js @@ -195,4 +195,8 @@ export class Platform { get devicePixelRatio() { return window.devicePixelRatio || 1; } + + get version() { + return window.HYDROGEN_VERSION; + } }