1
0
Fork 0
mirror of https://github.com/openstf/stf synced 2025-10-05 02:29:26 +02:00

ADB connect now respects auth keys in the settings page.

This commit is contained in:
Simo Kinnunen 2014-10-01 18:41:18 +09:00
parent 0a67c8c272
commit e6c1de5194
12 changed files with 322 additions and 49 deletions

View file

@ -30,7 +30,7 @@ module.exports = syrup.serial()
return currentGroup
})
plugin.join = function(newGroup, timeout) {
plugin.join = function(newGroup, timeout, identifier) {
return plugin.get()
.then(function() {
if (currentGroup.group !== newGroup.group) {
@ -60,7 +60,7 @@ module.exports = syrup.serial()
))
])
plugin.emit('join', currentGroup)
plugin.emit('join', currentGroup, identifier)
return currentGroup
})
@ -134,6 +134,15 @@ module.exports = syrup.serial()
])
})
})
.on(wire.AutoGroupMessage, function(channel, message) {
return plugin.join(message.owner, message.timeout, message.identifier)
.then(function() {
plugin.emit('autojoin', message.identifier, true)
})
.catch(grouputil.AlreadyGroupedError, function() {
plugin.emit('autojoin', message.identifier, false)
})
})
.on(wire.UngroupMessage, function(channel, message) {
var reply = wireutil.reply(options.serial)
grouputil.match(ident, message.requirements)