aboutsummaryrefslogtreecommitdiff
path: root/libdino/src/entity
diff options
context:
space:
mode:
authorMarvin W <git@larma.de>2023-02-07 20:08:18 +0100
committerMarvin W <git@larma.de>2023-02-07 20:23:51 +0100
commit32ae87a3c4cebaa05e0e702d744900cd414000db (patch)
treeeb9a14e8f88cfa7f08cc5225451aa06942aece96 /libdino/src/entity
parent1559a7a60370c2aa0203e5c4222def4ae3258006 (diff)
downloaddino-32ae87a3c4cebaa05e0e702d744900cd414000db.tar.gz
dino-32ae87a3c4cebaa05e0e702d744900cd414000db.zip
Fix some form entries not updating properly
Diffstat (limited to 'libdino/src/entity')
-rw-r--r--libdino/src/entity/account.vala2
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; }