Dan Ditomaso
1 year ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with
0 additions and
8 deletions
-
src/core/subscriptions.ts
-
src/pages/Messages.tsx
|
|
|
@ -57,14 +57,10 @@ export const subscribeAll = ( |
|
|
|
}); |
|
|
|
|
|
|
|
connection.events.onUserPacket.subscribe((user) => { |
|
|
|
console.log("User Packet", user); |
|
|
|
|
|
|
|
device.addUser(user); |
|
|
|
}); |
|
|
|
|
|
|
|
connection.events.onPositionPacket.subscribe((position) => { |
|
|
|
console.log("Position Packet", position); |
|
|
|
|
|
|
|
device.addPosition(position); |
|
|
|
}); |
|
|
|
|
|
|
|
|
|
|
|
@ -41,8 +41,6 @@ export const MessagesPage = () => { |
|
|
|
.sort((a, b) => b.unreadCount - a.unreadCount); |
|
|
|
} |
|
|
|
|
|
|
|
console.log('filtered nodes', filteredNodes()); |
|
|
|
|
|
|
|
const allChannels = Array.from(channels.values()); |
|
|
|
const filteredChannels = allChannels.filter( |
|
|
|
(ch) => ch.role !== Protobuf.Channel.Channel_Role.DISABLED, |
|
|
|
@ -65,8 +63,6 @@ export const MessagesPage = () => { |
|
|
|
|
|
|
|
try { |
|
|
|
messageId = await connection?.sendText(message, toValue, true, channelValue); |
|
|
|
console.log("Message sent, ID:", messageId); |
|
|
|
|
|
|
|
if (messageId !== undefined) { |
|
|
|
if (chatType === MessageType.Broadcast) { |
|
|
|
setMessageState({ type: chatType, channelId: channelValue, messageId, newState: MessageState.Ack }); |
|
|
|
|