FIX: Get a room wasn't enforcing sequential properly

This commit is contained in:
Robin Ward 2017-02-19 16:00:28 -05:00
parent a6ebe495bf
commit cfc0cc936f
1 changed files with 1 additions and 0 deletions

View File

@ -146,6 +146,7 @@ class ComposerMessagesFinder
last_x_replies = @topic.
posts.
where(user_id: @user.id).
order('created_at desc').
limit(SiteSetting.get_a_room_threshold).
pluck(:reply_to_user_id).
find_all {|uid| uid != @user.id && uid == reply_to_user_id}