diff options
author | Rory& <root@rory.gay> | 2024-01-15 02:12:26 +0100 |
---|---|---|
committer | Rory& <root@rory.gay> | 2024-01-15 02:12:26 +0100 |
commit | a65e35fbc2668c2db77e7c312da1b1fb778e09e4 (patch) | |
tree | 21368a71474935ba7425299b727b735726eff5a2 /MatrixRoomUtils.Web/Pages/Index.razor | |
parent | Dev test bot (diff) | |
download | MatrixUtils-a65e35fbc2668c2db77e7c312da1b1fb778e09e4.tar.xz |
LibMatrix update, refactor login page, add web manifest
Diffstat (limited to 'MatrixRoomUtils.Web/Pages/Index.razor')
-rw-r--r-- | MatrixRoomUtils.Web/Pages/Index.razor | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/MatrixRoomUtils.Web/Pages/Index.razor b/MatrixRoomUtils.Web/Pages/Index.razor index ebb0ebb..250dc2d 100644 --- a/MatrixRoomUtils.Web/Pages/Index.razor +++ b/MatrixRoomUtils.Web/Pages/Index.razor @@ -121,7 +121,7 @@ Small collection of tools to do not-so-everyday things. return; } - catch (HttpRequestException e) { + catch (Exception e) { logger.LogError(e, $"Failed to instantiate AuthenticatedHomeserver for {token.ToJson()}, homeserver may be offline?", token.UserId); _offlineSessions.Add(token); return; @@ -140,7 +140,7 @@ Small collection of tools to do not-so-everyday things. DisplayName = profile.DisplayName ?? hs.WhoAmI.UserId }, UserAuth = token, - ServerVersion = await hs.GetServerVersionAsync(), + ServerVersion = await (hs.FederationClient?.GetServerVersionAsync() ?? Task.FromResult<ServerVersionResponse?>(null)), Homeserver = hs }); }); |