Remove unused method

This commit is contained in:
JC Brand 2022-07-14 08:47:39 +02:00
parent f05a41f6a5
commit 4aab83c4af

View File

@ -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();