Handle unverified length of zero

This can happen with unknown groups, where we don't know the list of
members but we're receiving messages. It's generally not a good
experience, but we shouldn't crash.

FREEBIE
This commit is contained in:
Scott Nonnenberg 2017-06-23 16:27:34 -07:00
parent 224140c911
commit 1fedc75e5d

View file

@ -215,6 +215,9 @@
if (this.model.isUnverified()) {
var unverified = this.model.getUnverified();
var message;
if (!unverified.length) {
return;
}
if (unverified.length > 1) {
message = i18n('multipleNoLongerVerified');
} else {