Skip to content

Commit

Permalink
runfix: add missing return statement
Browse files Browse the repository at this point in the history
  • Loading branch information
PatrykBuniX committed Aug 11, 2023
1 parent 508cb77 commit bdf6e9a
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion src/script/conversation/ConversationRepository.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1540,7 +1540,11 @@ export class ConversationRepository {
//we never go back to proteus conversation, even if one of the users do not support mls anymore
//(e.g. due to the change of supported protocols in team configuration)
if (shouldUseMLSProtocol || isMLSConversation(conversation)) {
return this.initMLS1to1Conversation(otherUserId, isSupportedByTheOtherUser);
const mlsConversation = await this.initMLS1to1Conversation(otherUserId, isSupportedByTheOtherUser);
if (isProteusConversation(conversation)) {
await this.replaceProteus1to1WithMLS(conversation, mlsConversation);
}
return mlsConversation;
}

if (protocol === ConversationProtocol.PROTEUS && isProteusConversation(conversation)) {
Expand Down Expand Up @@ -1595,6 +1599,7 @@ export class ConversationRepository {
if (localProteusConversation && isProteusConversation(localProteusConversation)) {
await this.replaceProteus1to1WithMLS(localProteusConversation, mlsConversation);
}
return mlsConversation;
}

if (protocol === ConversationProtocol.PROTEUS) {
Expand Down

0 comments on commit bdf6e9a

Please sign in to comment.