1
0
mirror of https://github.com/matrix-org/matrix-js-sdk.git synced 2025-11-29 16:43:09 +03:00

Stop using bluebird .returns and .spread

This commit is contained in:
Michael Telatynski
2019-11-25 12:27:12 +00:00
parent bd8f8ef28d
commit 7fb807919c
2 changed files with 5 additions and 5 deletions

View File

@@ -139,7 +139,7 @@ OlmEncryption.prototype.encryptMessage = async function(room, eventType, content
}
}
return await Promise.all(promises).return(encryptedContent);
return await Promise.all(promises).then(() => encryptedContent);
};
/**