Implement ringer mode setting.

This commit is contained in:
Valverde Antonio
2014-06-26 16:50:50 +09:00
parent 6182856cb2
commit 3f19064ede
9 changed files with 90 additions and 2 deletions

View File

@@ -331,6 +331,16 @@ module.exports = function(options) {
)
])
})
.on('ringer.set', function(channel, responseChannel, data) {
joinChannel(responseChannel)
push.send([
channel
, wireutil.transaction(
responseChannel
, new wire.RingerSetMessage(data.mode)
)
])
})
.on('group.invite', function(channel, responseChannel, data) {
joinChannel(responseChannel)
push.send([