From 511b496d9e83ed916a6b807d32cd1d032b2f9329 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Guido=20G=C3=BCnther?= Date: Fri, 11 Oct 2024 23:26:25 +0200 Subject: [PATCH] matrix: Print home server versions --- src/ev-matrix.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/ev-matrix.c b/src/ev-matrix.c index 97d4828..d33aa32 100644 --- a/src/ev-matrix.c +++ b/src/ev-matrix.c @@ -379,6 +379,7 @@ ev_matrix_client_details (GStrv unused, GError **err) g_autoptr (EvFormatBuilder) builder = ev_format_builder_new (); gboolean logged_in; const char *device_id; + char *versions; if (!client) return NULL; @@ -387,6 +388,8 @@ ev_matrix_client_details (GStrv unused, GError **err) ev_format_builder_set_indent (builder, INFO_INDENT); ev_format_builder_add (builder, _("User"), cm_client_get_user_id (client)); ev_format_builder_add (builder, _("Home server"), cm_client_get_homeserver (client)); + versions = g_strjoinv (", ", (GStrv)cm_client_get_homeserver_versions (client)); + ev_format_builder_take_value (builder, _("Home server versions"), versions); ev_format_builder_add (builder, _("Device ID"), device_id ?: "not logged in"); if (device_id) { g_autoptr (GString) fp = NULL;