Jelajahi Sumber

Remove unused method

JC Brand 3 tahun lalu
induk
melakukan
4aab83c4af
1 mengubah file dengan 1 tambahan dan 6 penghapusan
  1. 1 6
      src/plugins/chatview/chat.js

+ 1 - 6
src/plugins/chatview/chat.js

@@ -14,7 +14,7 @@ import { _converse, api } from '@converse/headless/core';
 export default class ChatView extends BaseChatView {
     length = 200
 
-    async initialize() {
+    async initialize () {
         _converse.chatboxviews.add(this.jid, this);
         this.model = _converse.chatboxes.get(this.jid);
         this.listenTo(_converse, 'windowStateChanged', this.onWindowStateChanged);
@@ -49,11 +49,6 @@ export default class ChatView extends BaseChatView {
         ];
     }
 
-    showControlBox () { // eslint-disable-line class-methods-use-this
-        // Used in mobile view, to navigate back to the controlbox
-        _converse.chatboxviews.get('controlbox')?.show();
-    }
-
     afterShown () {
         this.model.setChatState(_converse.ACTIVE);
         this.model.clearUnreadMsgCounter();