diff options
Diffstat (limited to 'libdino/src/entity/account.vala')
-rw-r--r-- | libdino/src/entity/account.vala | 2 |
1 files changed, 1 insertions, 1 deletions
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; } |