mirror of
https://github.com/DeviceFarmer/stf.git
synced 2026-04-18 08:13:31 +02:00
ADB connect now respects auth keys in the settings page.
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user