Browse Source

fix: removed console logs in code (#592)

pull/594/head
Dan Ditomaso 1 year ago
committed by GitHub
parent
commit
79910dfec7
No known key found for this signature in database GPG Key ID: B5690EEEBB952194
  1. 4
      src/core/subscriptions.ts
  2. 4
      src/pages/Messages.tsx

4
src/core/subscriptions.ts

@ -57,14 +57,10 @@ export const subscribeAll = (
}); });
connection.events.onUserPacket.subscribe((user) => { connection.events.onUserPacket.subscribe((user) => {
console.log("User Packet", user);
device.addUser(user); device.addUser(user);
}); });
connection.events.onPositionPacket.subscribe((position) => { connection.events.onPositionPacket.subscribe((position) => {
console.log("Position Packet", position);
device.addPosition(position); device.addPosition(position);
}); });

4
src/pages/Messages.tsx

@ -41,8 +41,6 @@ export const MessagesPage = () => {
.sort((a, b) => b.unreadCount - a.unreadCount); .sort((a, b) => b.unreadCount - a.unreadCount);
} }
console.log('filtered nodes', filteredNodes());
const allChannels = Array.from(channels.values()); const allChannels = Array.from(channels.values());
const filteredChannels = allChannels.filter( const filteredChannels = allChannels.filter(
(ch) => ch.role !== Protobuf.Channel.Channel_Role.DISABLED, (ch) => ch.role !== Protobuf.Channel.Channel_Role.DISABLED,
@ -65,8 +63,6 @@ export const MessagesPage = () => {
try { try {
messageId = await connection?.sendText(message, toValue, true, channelValue); messageId = await connection?.sendText(message, toValue, true, channelValue);
console.log("Message sent, ID:", messageId);
if (messageId !== undefined) { if (messageId !== undefined) {
if (chatType === MessageType.Broadcast) { if (chatType === MessageType.Broadcast) {
setMessageState({ type: chatType, channelId: channelValue, messageId, newState: MessageState.Ack }); setMessageState({ type: chatType, channelId: channelValue, messageId, newState: MessageState.Ack });

Loading…
Cancel
Save