summaryrefslogtreecommitdiffstats
path: root/app/web_hub.go
diff options
context:
space:
mode:
authorCorey Hulen <corey@hulen.com>2017-03-01 12:49:46 -0500
committerGitHub <noreply@github.com>2017-03-01 12:49:46 -0500
commit7829c24e928249580ffe139308447bf0c608ae98 (patch)
tree3523e241914b7672209ee560b2edcc2419e4892e /app/web_hub.go
parent633e894e4f082ceb210a475d13157bbcac715bf8 (diff)
downloadchat-7829c24e928249580ffe139308447bf0c608ae98.tar.gz
chat-7829c24e928249580ffe139308447bf0c608ae98.tar.bz2
chat-7829c24e928249580ffe139308447bf0c608ae98.zip
Removing typing check for master (#5583)
* Removing typing check for master * Removing typing check for master
Diffstat (limited to 'app/web_hub.go')
-rw-r--r--app/web_hub.go19
1 files changed, 0 insertions, 19 deletions
diff --git a/app/web_hub.go b/app/web_hub.go
index eae481e17..5b7e3623e 100644
--- a/app/web_hub.go
+++ b/app/web_hub.go
@@ -90,14 +90,6 @@ func HubUnregister(webConn *WebConn) {
func Publish(message *model.WebSocketEvent) {
- if SkipTypingMessage(message) {
- if metrics := einterfaces.GetMetricsInterface(); metrics != nil {
- metrics.IncrementWebsocketEvent(message.Event + "_skipped")
- }
-
- return
- }
-
if metrics := einterfaces.GetMetricsInterface(); metrics != nil {
metrics.IncrementWebsocketEvent(message.Event)
}
@@ -337,14 +329,3 @@ func (h *Hub) Start() {
go doRecoverableStart()
}
-
-func SkipTypingMessage(msg *model.WebSocketEvent) bool {
- // Only broadcast typing messages if less than 1K people in channel
- if msg.Event == model.WEBSOCKET_EVENT_TYPING {
- if Srv.Store.Channel().GetMemberCountFromCache(msg.Broadcast.ChannelId) > *utils.Cfg.TeamSettings.MaxNotificationsPerChannel {
- return true
- }
- }
-
- return false
-}