fix: removed console logs in code (#592)
This commit is contained in:
@@ -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);
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|||||||
@@ -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 });
|
||||||
|
|||||||
Reference in New Issue
Block a user