1
0
Fork 0
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:
Simo Kinnunen 2014-02-03 01:31:18 +09:00
parent 4ac766c371
commit 3a0d177925
6 changed files with 55 additions and 21 deletions

View file

@ -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()
})