mirror of
https://github.com/openstf/stf
synced 2025-10-05 02:29:26 +02:00
Make inviting/kicking work.
This commit is contained in:
parent
4ac766c371
commit
3a0d177925
6 changed files with 55 additions and 21 deletions
|
@ -6,11 +6,13 @@ define(['./module', 'lodash'], function(mod, _) {
|
|||
|
||||
socket.on('group.join', function(data) {
|
||||
groupService.members.push(data.serial)
|
||||
console.log('group.join', data)
|
||||
$rootScope.$digest()
|
||||
})
|
||||
|
||||
socket.on('group.left', function(data) {
|
||||
socket.on('group.leave', function(data) {
|
||||
_.pull(groupService.members, data.serial)
|
||||
console.log('group.leave', data)
|
||||
$rootScope.$digest()
|
||||
})
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue