Fix segfault in groupchat name generation

fixes #635
This commit is contained in:
fiaxh 2019-10-23 16:43:08 +02:00
parent 26e970a4d4
commit df217fb117

View file

@ -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;
}