소스 검색

Fix reference error

JC Brand 4 년 전
부모
커밋
6f318bc86d
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 1
      src/headless/plugins/chat/model.js

+ 1 - 1
src/headless/plugins/chat/model.js

@@ -1042,7 +1042,7 @@ const ChatBox = ModelWithContact.extend({
                 // gets scrolled down. We always want to scroll down
                 // when the user writes a message as opposed to when a
                 // message is received.
-                this.model.set('scrolled', false);
+                this.set('scrolled', false);
             } else if (this.isHidden() || this.get('scrolled')) {
                 const settings = {
                     'num_unread': this.get('num_unread') + 1