mirror of
https://github.com/mattermost/mattermost.git
synced 2025-02-25 18:55:24 -06:00
MM-15498 - removed redundant post_edited event on reaction change (#10873)
* removed redundant post_edited event
This commit is contained in:
@@ -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)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user