Skip to content

Commit

Permalink
matrix: Print home server versions
Browse files Browse the repository at this point in the history
  • Loading branch information
agx committed Oct 14, 2024
1 parent 7ffd481 commit 511b496
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/ev-matrix.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand All @@ -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;
Expand Down

0 comments on commit 511b496

Please sign in to comment.