spec/integ/matrix-client-crypto.spec.js
/**
 * Ali sends a message, first claiming e2e keys. Set the expectations and
 * check the results.
 *
 * @return {promise} which resolves to the ciphertext for Bob's device.
 */
Ali sends a message, first claiming e2e keys. Set the expectations and
check the results.

@return {promise} which resolves to the ciphertext for Bob's device.
Ali sends a message first claiming e2e keys . Set the expectations and check the results . @return { promise } which resolves to the ciphertext for Bob ' s device .
function aliSendsFirstMessage() {
    return q.all([
        sendMessage(aliClient),
        expectAliQueryKeys()
            .then(expectAliClaimKeys)
            .then(expectAliSendMessageRequest),
    ]).spread(function(_, ciphertext) {
        return ciphertext;
    });
}
function aliSendsFirstMessage ( ) { return q . all ( [ sendMessage ( aliClient ) , expectAliQueryKeys ( ) . then ( expectAliClaimKeys ) . then ( expectAliSendMessageRequest ) , ] ) . spread ( function ( _ , ciphertext ) { return ciphertext ; } ) ; }
Ali sends a message, first claiming e2e keys.
Ali sends a message first claiming e2e keys .