From 5ee1f6e2e01642c48f321dac8e406c3981471877 Mon Sep 17 00:00:00 2001 From: Eli Yukelzon Date: Mon, 17 Jun 2019 15:39:14 +0300 Subject: [PATCH] MM-15498 - removed redundant post_edited event on reaction change (#10873) * removed redundant post_edited event --- app/reaction.go | 9 --------- 1 file changed, 9 deletions(-) diff --git a/app/reaction.go b/app/reaction.go index 0df27ca702..6aca0165a2 100644 --- a/app/reaction.go +++ b/app/reaction.go @@ -133,13 +133,4 @@ func (a *App) sendReactionEvent(event string, reaction *model.Reaction, post *mo message := model.NewWebSocketEvent(event, "", post.ChannelId, "", nil) message.Add("reaction", reaction.ToJson()) a.Publish(message) - - post.HasReactions = hasReactions - post.UpdateAt = model.GetMillis() - - clientPost := a.PreparePostForClient(post, false, false) - - umessage := model.NewWebSocketEvent(model.WEBSOCKET_EVENT_POST_EDITED, "", post.ChannelId, "", nil) - umessage.Add("post", clientPost.ToJson()) - a.Publish(umessage) }