summaryrefslogtreecommitdiffstats
path: root/app/channel.go
diff options
context:
space:
mode:
authorenahum <nahumhbl@gmail.com>2017-02-27 17:41:12 -0300
committerChristopher Speller <crspeller@gmail.com>2017-02-27 15:41:12 -0500
commit48f97a5a2a0754bfc0e639db7cce03943e990e32 (patch)
tree74d6a48d467d245e62f1e3c526a9abf9413c71a9 /app/channel.go
parent72de977c522465bc2ee044cd4a26baf666f299a3 (diff)
downloadchat-48f97a5a2a0754bfc0e639db7cce03943e990e32.tar.gz
chat-48f97a5a2a0754bfc0e639db7cce03943e990e32.tar.bz2
chat-48f97a5a2a0754bfc0e639db7cce03943e990e32.zip
PLT-5653 Fix Create channel does not show in another device (#5548)
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
}