aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorfiaxh <git@lightrise.org>2019-10-23 16:43:08 +0200
committerfiaxh <git@lightrise.org>2019-10-23 16:45:16 +0200
commitdf217fb1171e848d28857d946edbaaa8d1d6e613 (patch)
tree0a9d4313a642d1b89e7c1284815889d2253b6ccc
parent26e970a4d4e835cc879fc8cc5a0604fb50e67ce3 (diff)
downloaddino-df217fb1171e848d28857d946edbaaa8d1d6e613.tar.gz
dino-df217fb1171e848d28857d946edbaaa8d1d6e613.zip
Fix segfault in groupchat name generation
fixes #635
-rw-r--r--main/src/ui/util/helper.vala2
1 files changed, 1 insertions, 1 deletions
diff --git a/main/src/ui/util/helper.vala b/main/src/ui/util/helper.vala
index 16f2d66b..5c72743f 100644
--- a/main/src/ui/util/helper.vala
+++ b/main/src/ui/util/helper.vala
@@ -168,7 +168,7 @@ private static string get_groupchat_display_name(StreamInteractor stream_interac
if (builder.len != 0) {
builder.append(", ");
}
- builder.append((get_real_display_name(stream_interactor, account, occupant) ?? occupant.localpart).split(" ")[0]);
+ builder.append((get_real_display_name(stream_interactor, account, occupant) ?? occupant.localpart ?? occupant.domainpart).split(" ")[0]);
}
return builder.str;
}