Consolidate checks for v2 Groups

This commit is contained in:
Chris Svenningsen 2020-10-02 15:19:52 -07:00 committed by Josh Perez
parent c3ddedfde1
commit cf9764c85a
5 changed files with 13 additions and 11 deletions

View file

@ -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),