FIX: Only scroll PMs on new message.

This commit is contained in:
Guo Xiang Tan 2016-11-10 09:25:54 +08:00
parent 985b855a5b
commit eaf7746ec9
1 changed files with 2 additions and 1 deletions

View File

@ -843,7 +843,8 @@ export default Ember.Controller.extend(SelectedPostsCount, BufferedContent, {
} else { } else {
if (topic.get('isPrivateMessage') && if (topic.get('isPrivateMessage') &&
this.currentUser && this.currentUser &&
this.currentUser.get('id') !== data.user_id) { this.currentUser.get('id') !== data.user_id &&
data.type === 'created') {
const postNumber = data.post_number; const postNumber = data.post_number;
const notInPostStream = topic.get('highest_post_number') <= postNumber; const notInPostStream = topic.get('highest_post_number') <= postNumber;