1
0
mirror of https://github.com/craigerl/aprsd.git synced 2025-08-01 05:02:25 -04:00

Fixed another msgNo int issue

This commit is contained in:
Hemna 2023-09-29 15:40:42 -04:00
parent 9bdfd166fd
commit 751bbc2514
2 changed files with 2 additions and 3 deletions

View File

@ -131,9 +131,9 @@ class WebChatProcessPacketThread(rx.APRSDProcessPacketThread):
def process_ack_packet(self, packet: packets.AckPacket): def process_ack_packet(self, packet: packets.AckPacket):
super().process_ack_packet(packet) super().process_ack_packet(packet)
ack_num = packet.get("msgNo") ack_num = packet.get("msgNo")
SentMessages().ack(int(ack_num)) SentMessages().ack(ack_num)
self.socketio.emit( self.socketio.emit(
"ack", SentMessages().get(int(ack_num)), "ack", SentMessages().get(ack_num),
namespace="/sendmsg", namespace="/sendmsg",
) )
self.got_ack = True self.got_ack = True

View File

@ -34,7 +34,6 @@ function init_chat() {
console.log("SENT: "); console.log("SENT: ");
console.log(msg); console.log(msg);
if (cleared === false) { if (cleared === false) {
console.log("CLEARING #msgsTabsDiv");
var msgsdiv = $("#msgsTabsDiv"); var msgsdiv = $("#msgsTabsDiv");
msgsdiv.html(''); msgsdiv.html('');
cleared = true; cleared = true;