MM-27493 Shared channels (MVP) (#17301)
Remote Cluster Service - provides ability for multiple Mattermost cluster instances to create a trusted connection with each other and exchange messages - trusted connections are managed via slash commands (for now) - facilitates features requiring inter-cluster communication, such as Shared Channels Shared Channels Service - provides ability to shared channels between one or more Mattermost cluster instances (using trusted connection) - sharing/unsharing of channels is managed via slash commands (for now)
Этот коммит содержится в:
@@ -180,17 +180,20 @@ func (a *App) Publish(message *model.WebSocketEvent) {
|
||||
a.Srv().Publish(message)
|
||||
}
|
||||
|
||||
func (s *Server) PublishSkipClusterSend(message *model.WebSocketEvent) {
|
||||
if message.GetBroadcast().UserId != "" {
|
||||
hub := s.GetHubForUserId(message.GetBroadcast().UserId)
|
||||
func (s *Server) PublishSkipClusterSend(event *model.WebSocketEvent) {
|
||||
if event.GetBroadcast().UserId != "" {
|
||||
hub := s.GetHubForUserId(event.GetBroadcast().UserId)
|
||||
if hub != nil {
|
||||
hub.Broadcast(message)
|
||||
hub.Broadcast(event)
|
||||
}
|
||||
} else {
|
||||
for _, hub := range s.hubs {
|
||||
hub.Broadcast(message)
|
||||
hub.Broadcast(event)
|
||||
}
|
||||
}
|
||||
|
||||
// Notify shared channel sync service
|
||||
s.SharedChannelSyncHandler(event)
|
||||
}
|
||||
|
||||
func (a *App) invalidateCacheForChannel(channel *model.Channel) {
|
||||
|
||||
Ссылка в новой задаче
Block a user