getMembersCount: Return undefined when conversation has no members
This commit is contained in:
parent
a8d7d718b5
commit
2957735a86
1 changed files with 3 additions and 3 deletions
|
@ -1412,9 +1412,9 @@ export class ConversationModel extends window.Backbone.Model<
|
|||
window.Signal.Data.updateConversation(this.attributes);
|
||||
}
|
||||
|
||||
getMembersCount(): number {
|
||||
getMembersCount(): number | undefined {
|
||||
if (this.isPrivate()) {
|
||||
return 1;
|
||||
return undefined;
|
||||
}
|
||||
|
||||
const memberList = this.get('membersV2') || this.get('members');
|
||||
|
@ -1429,7 +1429,7 @@ export class ConversationModel extends window.Backbone.Model<
|
|||
return temporaryMemberCount;
|
||||
}
|
||||
|
||||
return 0;
|
||||
return undefined;
|
||||
}
|
||||
|
||||
decrementMessageCount(): void {
|
||||
|
|
Loading…
Reference in a new issue