From 32ae87a3c4cebaa05e0e702d744900cd414000db Mon Sep 17 00:00:00 2001 From: Marvin W Date: Tue, 7 Feb 2023 20:08:18 +0100 Subject: Fix some form entries not updating properly --- libdino/src/entity/account.vala | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'libdino') diff --git a/libdino/src/entity/account.vala b/libdino/src/entity/account.vala index 3eb75505..2b7f2b04 100644 --- a/libdino/src/entity/account.vala +++ b/libdino/src/entity/account.vala @@ -13,7 +13,7 @@ public class Account : Object { public Jid full_jid { get; private set; } public string? password { get; set; } public string display_name { - owned get { return alias ?? bare_jid.to_string(); } + owned get { return (alias != null && alias.length > 0) ? alias.dup() : bare_jid.to_string(); } } public string? alias { get; set; } public bool enabled { get; set; default = false; } -- cgit v1.2.3-70-g09d2