1
0
mirror of https://github.com/matrix-org/matrix-js-sdk.git synced 2025-11-25 05:23:13 +03:00

Rip out more bluebirds

This commit is contained in:
Michael Telatynski
2019-11-25 16:58:46 +00:00
parent 0170cb066d
commit efcaadd0b4
6 changed files with 1 additions and 10 deletions

View File

@@ -14,8 +14,6 @@ See the License for the specific language governing permissions and
limitations under the License. limitations under the License.
*/ */
import Promise from 'bluebird';
import logger from '../logger'; import logger from '../logger';
import utils from '../utils'; import utils from '../utils';

View File

@@ -20,8 +20,6 @@ limitations under the License.
* @module * @module
*/ */
import Promise from 'bluebird';
/** /**
* map of registered encryption algorithm classes. A map from string to {@link * map of registered encryption algorithm classes. A map from string to {@link
* module:crypto/algorithms/base.EncryptionAlgorithm|EncryptionAlgorithm} class * module:crypto/algorithms/base.EncryptionAlgorithm|EncryptionAlgorithm} class

View File

@@ -508,7 +508,7 @@ MegolmEncryption.prototype.reshareKeyWithDevice = async function(
userId, userId,
device, device,
payload, payload,
), );
await this._baseApis.sendToDevice("m.room.encrypted", { await this._baseApis.sendToDevice("m.room.encrypted", {
[userId]: { [userId]: {

View File

@@ -20,15 +20,12 @@ limitations under the License.
* *
* @module crypto/algorithms/olm * @module crypto/algorithms/olm
*/ */
import Promise from 'bluebird';
import logger from '../../logger'; import logger from '../../logger';
const utils = require("../../utils"); const utils = require("../../utils");
const olmlib = require("../olmlib"); const olmlib = require("../olmlib");
const DeviceInfo = require("../deviceinfo"); const DeviceInfo = require("../deviceinfo");
const DeviceVerification = DeviceInfo.DeviceVerification; const DeviceVerification = DeviceInfo.DeviceVerification;
const base = require("./base"); const base = require("./base");
/** /**

View File

@@ -21,7 +21,6 @@ limitations under the License.
* Utilities common to olm encryption algorithms * Utilities common to olm encryption algorithms
*/ */
import Promise from 'bluebird';
const anotherjson = require('another-json'); const anotherjson = require('another-json');
import logger from '../logger'; import logger from '../logger';

View File

@@ -21,7 +21,6 @@ limitations under the License.
*/ */
const unhomoglyph = require('unhomoglyph'); const unhomoglyph = require('unhomoglyph');
// import Promise from 'bluebird';
/** /**
* Encode a dictionary of query parameters. * Encode a dictionary of query parameters.