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

@return {promise} which resolves to the ciphertext for Ali's device.
Bob sends a message first querying ( but not claiming ) e2e keys . Set the expectations and check the results . @return { promise } which resolves to the ciphertext for Ali ' s device .
function bobSendsReplyMessage() {
    return q.all([
        sendMessage(bobClient),
        expectBobQueryKeys()
            .then(expectBobSendMessageRequest),
    ]).spread(function(_, ciphertext) {
        return ciphertext;
    });
}
function bobSendsReplyMessage ( ) { return q . all ( [ sendMessage ( bobClient ) , expectBobQueryKeys ( ) . then ( expectBobSendMessageRequest ) , ] ) . spread ( function ( _ , ciphertext ) { return ciphertext ; } ) ; }
Bob sends a message, first querying (but not claiming) e2e keys.
Bob sends a message first querying ( but not claiming ) e2e keys .