Fix crash when conversations have no valid participants (#10078)

* Never return empty participants for conversations

Fixes #10068

* Fix client-side crash when conversations have no participants
This commit is contained in:
ThibG authored and Eugen Rochko committed 2019-02-19 20:00:41 +01:00
1 parent 359d26a053
commit 8e7fc7ec73
3 files changed
+4 -3

No files matched your search

+1 -1
View File
@@ -326,7 +326,7 @@ class Status extends ImmutablePureComponent {
);
}
if (otherAccounts) {
if (otherAccounts && otherAccounts.size > 0) {
statusAvatar = <AvatarComposite accounts={otherAccounts} size={48} />;
} else if (account === undefined || account === null) {
statusAvatar = <Avatar account={status.get('account')} size={48} />;