MM-15498 - removed redundant post_edited event on reaction change (#10873)

* removed redundant post_edited event
This commit is contained in:
Eli Yukelzon
2019-06-17 15:39:14 +03:00
committed by GitHub
parent 6535010366
commit 5ee1f6e2e0

View File

@@ -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)
}