Refactored post handling/updating on both the client and server.

Этот коммит содержится в:
JoramWilander
2015-08-26 12:09:01 -04:00
родитель 8356e25f80
Коммит 041d89b85a
28 изменённых файлов: 1643 добавлений и 902 удалений

Просмотреть файл

@@ -30,6 +30,14 @@ func PublishAndForget(message *model.Message) {
}()
}
func UpdateChannelAccessCacheAndForget(teamId, userId, channelId string) {
go func() {
if nh, ok := hub.teamHubs[teamId]; ok {
nh.UpdateChannelAccessCache(userId, channelId)
}
}()
}
func (h *Hub) Register(webConn *WebConn) {
h.register <- webConn
}