mirror of
https://github.com/DeviceFarmer/stf.git
synced 2026-04-18 16:13:24 +02:00
Allow invites for an already joined member to succeed.
This commit is contained in:
@@ -32,7 +32,11 @@ module.exports = syrup.serial()
|
||||
plugin.join = function(newGroup, timeout) {
|
||||
return plugin.get()
|
||||
.then(function() {
|
||||
throw new grouputil.AlreadyGroupedError()
|
||||
if (currentGroup.group !== newGroup.group) {
|
||||
throw new grouputil.AlreadyGroupedError()
|
||||
}
|
||||
|
||||
return currentGroup
|
||||
})
|
||||
.catch(grouputil.NoGroupError, function() {
|
||||
currentGroup = newGroup
|
||||
|
||||
Reference in New Issue
Block a user