diff options
author | fiaxh <git@mx.ax.lt> | 2018-05-09 23:19:22 +0200 |
---|---|---|
committer | fiaxh <git@mx.ax.lt> | 2018-05-10 22:17:19 +0200 |
commit | 5425243203cbf5f86b33c4014c5aa787c6aae856 (patch) | |
tree | cdaf132cfc78358353cfba9b94d5478159b566c8 /main/src/ui/util | |
parent | e852a0a60b1f307b59eff1de02748a36b25eec55 (diff) | |
download | dino-5425243203cbf5f86b33c4014c5aa787c6aae856.tar.gz dino-5425243203cbf5f86b33c4014c5aa787c6aae856.zip |
Fix empty display names, fix update contact roster name
Diffstat (limited to 'main/src/ui/util')
-rw-r--r-- | main/src/ui/util/helper.vala | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/main/src/ui/util/helper.vala b/main/src/ui/util/helper.vala index 6d9218e4..3cadfffb 100644 --- a/main/src/ui/util/helper.vala +++ b/main/src/ui/util/helper.vala @@ -60,9 +60,6 @@ public static string get_conversation_display_name(StreamInteractor stream_inter public static string get_display_name(StreamInteractor stream_interactor, Jid jid, Account account) { if (stream_interactor.get_module(MucManager.IDENTITY).is_groupchat_occupant(jid, account)) { - if (jid.resourcepart == account.resourcepart) { - return account.alias; // FIXME temporary. remove again. - } return jid.resourcepart; } else { if (jid.equals_bare(account.bare_jid)) { @@ -73,7 +70,7 @@ public static string get_display_name(StreamInteractor stream_interactor, Jid ji } } Roster.Item roster_item = stream_interactor.get_module(RosterManager.IDENTITY).get_roster_item(account, jid); - if (roster_item != null && roster_item.name != null) { + if (roster_item != null && roster_item.name != null && roster_item.name != "") { return roster_item.name; } return jid.bare_jid.to_string(); |