Skip to content
This repository has been archived by the owner on Apr 8, 2020. It is now read-only.

Commit

Permalink
Remove dead code leftover from before channel groups (#324)
Browse files Browse the repository at this point in the history
  • Loading branch information
ianjennings committed Mar 2, 2018
1 parent db1628a commit 02b7d95
Showing 1 changed file with 2 additions and 21 deletions.
23 changes: 2 additions & 21 deletions src/bootstrap.js
Original file line number Diff line number Diff line change
Expand Up @@ -324,27 +324,8 @@ module.exports = (ceConfig = {}, pnConfig = {}) => {

let eventName = ['$', 'network', categories[statusEvent.category] || 'other'].join('.');

if (statusEvent.affectedChannels) {
statusEvent.affectedChannels.forEach((channel) => {

let chat = ChatEngine.chats[channel];

if (chat) {
// connected category tells us the chat is ready
if (statusEvent.category === 'PNConnectedCategory') {
chat.connectionReady();
}

// trigger the network events
chat.trigger(eventName, statusEvent);

} else {
ChatEngine._emit(eventName, statusEvent);
}
});
} else {
ChatEngine._emit(eventName, statusEvent);
}
ChatEngine._emit(eventName, statusEvent);

}
});

Expand Down

0 comments on commit 02b7d95

Please sign in to comment.