Skip to content

Commit

Permalink
bump version
Browse files Browse the repository at this point in the history
  • Loading branch information
arlolra committed May 5, 2015
1 parent c96ace9 commit 158621a
Show file tree
Hide file tree
Showing 4 changed files with 19 additions and 7 deletions.
14 changes: 10 additions & 4 deletions build/otr.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
/*!
otr.js v0.2.14 - 2015-01-16
otr.js v0.2.15 - 2015-05-04
(c) 2015 - Arlo Breault <[email protected]>
Freely distributed under the MPL v2.0 license.
Expand Down Expand Up @@ -2118,8 +2118,12 @@
OTR.prototype.io = function (msg, meta) {

// buffer
msg = ([].concat(msg)).map(function(m){
return { msg: m, meta: meta }
msg = ([].concat(msg)).map(function(m, i, arr) {
var obj = { msg: m }
if (!(meta instanceof OTRCB) ||
i === (arr.length - 1) // only cb after last fragment is sent
) obj.meta = meta
return obj
})
this.outgoing = this.outgoing.concat(msg)

Expand Down Expand Up @@ -2608,7 +2612,9 @@
if (this.smw) this.sm.worker.terminate() // destroy webworker
this.sm = null
}
}
} else if (typeof cb === 'function')
setTimeout(cb, 0)

this.msgstate = CONST.MSGSTATE_PLAINTEXT
this.receivedPlaintext = false
this.trigger('status', [CONST.STATUS_END_OTR])
Expand Down
4 changes: 2 additions & 2 deletions build/otr.min.js

Large diffs are not rendered by default.

6 changes: 6 additions & 0 deletions changelog.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,10 @@

0.2.15 / 2015-05-04
===================

* prevent end callback from getting called multiple times
* call end callback even when not in encrypted state

0.2.14 / 2015-01-16
===================

Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "otr",
"version": "0.2.14",
"version": "0.2.15",
"description": "Off-the-Record Messaging Protocol",
"homepage": "https://github.com/arlolra/otr",
"main": "index.js",
Expand Down

0 comments on commit 158621a

Please sign in to comment.