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):
super().process_ack_packet(packet)
ack_num = packet.get("msgNo")
SentMessages().ack(int(ack_num))
SentMessages().ack(ack_num)
self.socketio.emit(
"ack", SentMessages().get(int(ack_num)),
"ack", SentMessages().get(ack_num),
namespace="/sendmsg",
)
self.got_ack = True

View File

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