Revert "DEV: Move private message topic tracking state publish into sidekiq."

This reverts commit c51c80466c.

There is a conditional in post jobs enqueuer that only enqueues the job
for non-PM posts.
This commit is contained in:
Alan Guo Xiang Tan
2021-07-30 11:31:36 +08:00
parent 5633c40e50
commit 849827841f
2 changed files with 9 additions and 11 deletions

View File

@@ -20,6 +20,11 @@ class PostJobsEnqueuer
after_topic_create
make_visible
end
if @topic.private_message?
TopicTrackingState.publish_private_message(@topic, post: @post)
TopicGroup.new_message_update(@topic.last_poster, @topic.id, @post.post_number)
end
end
private