summaryrefslogtreecommitdiffstats
path: root/app/channel.go
diff options
context:
space:
mode:
Diffstat (limited to 'app/channel.go')
-rw-r--r--app/channel.go4
1 files changed, 4 insertions, 0 deletions
diff --git a/app/channel.go b/app/channel.go
index cff9564b5..71e8cee2c 100644
--- a/app/channel.go
+++ b/app/channel.go
@@ -105,6 +105,10 @@ func CreateChannelWithUser(channel *model.Channel, userId string) (*model.Channe
return nil, err
}
+ message := model.NewWebSocketEvent(model.WEBSOCKET_EVENT_CHANNEL_CREATED, "", "", userId, nil)
+ message.Add("channel_id", channel.Id)
+ Publish(message)
+
return rchannel, nil
}