Skip to content

Commit

Permalink
remove unused code
Browse files Browse the repository at this point in the history
  • Loading branch information
nesium committed Sep 26, 2023
1 parent ea64aa4 commit 87237d6
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 20 deletions.
9 changes: 0 additions & 9 deletions src/broker/delegate.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down
12 changes: 1 addition & 11 deletions src/broker/modules/muc.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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";
Expand Down Expand Up @@ -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<Contact[]> {
// 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()) || [];
}
}

/**************************************************************************
Expand Down

0 comments on commit 87237d6

Please sign in to comment.