Consolidate checks for v2 Groups
This commit is contained in:
parent
c3ddedfde1
commit
cf9764c85a
5 changed files with 13 additions and 11 deletions
|
@ -2139,7 +2139,7 @@ Whisper.ConversationView = Whisper.View.extend({
|
|||
|
||||
let model = providedMembers || this.model.contactCollection;
|
||||
|
||||
if (!providedMembers && this.model.get('groupVersion') === 2) {
|
||||
if (!providedMembers && this.model.isGroupV2()) {
|
||||
model = new Whisper.GroupConversationCollection(
|
||||
this.model.get('membersV2').map(({ conversationId, role }: any) => ({
|
||||
conversation: window.ConversationController.get(conversationId),
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue