Implement group status.
We now inform clients of the status of a group (locked, etc.). Also cleans up the handling of administrative messages, which solves the issue of receiving "user" before "joined".
This commit is contained in:
@@ -77,7 +77,7 @@ func (client *Client) Status() map[string]interface{} {
|
||||
return nil
|
||||
}
|
||||
|
||||
func (client *Client) PushClient(id, username string, permissions *group.ClientPermissions, status map[string]interface{}, kind string) error {
|
||||
func (client *Client) PushClient(group, kind, id, username string, permissions group.ClientPermissions, status map[string]interface{}) error {
|
||||
return nil
|
||||
}
|
||||
|
||||
@@ -103,6 +103,10 @@ func (client *Client) Kick(id, user, message string) error {
|
||||
return err
|
||||
}
|
||||
|
||||
func (client *Client) Joined(group, kind string) error {
|
||||
return nil
|
||||
}
|
||||
|
||||
func (client *Client) PushConn(g *group.Group, id string, up conn.Up, tracks []conn.UpTrack, replace string) error {
|
||||
if client.group != g {
|
||||
return nil
|
||||
|
||||
Reference in New Issue
Block a user