A bit of refactoring and new functionality for removeAccount method.

This commit is contained in:
Valverde Antonio
2014-07-29 16:21:46 +09:00
parent 437596e6c6
commit 1386b438c0
8 changed files with 26 additions and 18 deletions

View File

@@ -332,13 +332,13 @@ module.exports = function(options) {
)
])
})
.on('account.remove', function(channel, responseChannel) {
.on('account.remove', function(channel, responseChannel, data) {
joinChannel(responseChannel)
push.send([
channel
, wireutil.transaction(
responseChannel
, new wire.AccountRemoveMessage()
, new wire.AccountRemoveMessage(data)
)
])
})