From 87237d602231b1ab671d6abc44c79cc5d89495c1 Mon Sep 17 00:00:00 2001 From: mb Date: Tue, 26 Sep 2023 10:30:30 +0200 Subject: [PATCH] remove unused code --- src/broker/delegate.ts | 9 --------- src/broker/modules/muc.ts | 12 +----------- 2 files changed, 1 insertion(+), 20 deletions(-) diff --git a/src/broker/delegate.ts b/src/broker/delegate.ts index b2ec2eb3..7d5ff6bc 100644 --- a/src/broker/delegate.ts +++ b/src/broker/delegate.ts @@ -60,15 +60,6 @@ class BrokerDelegate implements ProseClientDelegate { ); // TODO: Handle multiple composing users in the UI - - // const conversationComposingUser = composingUsers.find(jid => { - // return jid.equals(conversation); - // }); - - // Store.$inbox.setComposing( - // room.id, - // conversationComposingUser ? true : false - // ); } roomsChanged(_client: ProseClient): void { diff --git a/src/broker/modules/muc.ts b/src/broker/modules/muc.ts index 05537493..77849dbe 100644 --- a/src/broker/modules/muc.ts +++ b/src/broker/modules/muc.ts @@ -9,13 +9,12 @@ * ************************************************************************* */ // NPM -import { Channel, Contact, JID, Room } from "@prose-im/prose-sdk-js"; +import { Channel, JID, Room } from "@prose-im/prose-sdk-js"; // PROJECT: BROKER import BrokerModule from "@/broker/modules"; // PROJECT: UTILITIES -import logger from "@/utilities/logger"; // PROJECT: STORES import Store from "@/store"; @@ -66,15 +65,6 @@ class BrokerModuleMUC extends BrokerModule { const room = (await this._client.client.createPrivateChannel(name)) as Room; Store.$muc.insertRoom(room); } - - async loadContacts(): Promise { - // XMPP: Instant Messaging and Presence - // https://xmpp.org/rfcs/rfc6121.html#roster-syntax-actions-get - - logger.info("Will load roster (or reload)"); - - return (await this._client.client?.loadContacts()) || []; - } } /**************************************************************************