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:
@@ -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 {
|
||||
|
Reference in New Issue
Block a user