From b708d5c834423693ba80b49c3b24704d0d7718bf Mon Sep 17 00:00:00 2001 From: liamcottle Date: Sat, 15 Feb 2025 23:23:30 +1300 Subject: [PATCH] auto sync new message in test ui --- index.html | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/index.html b/index.html index 5a102a6..d086d41 100644 --- a/index.html +++ b/index.html @@ -198,6 +198,11 @@ await this.loadContacts(); }); + this.connection.on(Constants.PushCodes.MsgWaiting, async (event) => { + console.log("MsgWaiting", event); + await this.syncNextMessage(); + }); + this.connection.on(Constants.ResponseCodes.ExportContact, async (event) => { console.log("ExportContact", event); }); @@ -374,7 +379,7 @@ }, async setPath(contact) { await this.connection.setContactPath(contact, [ - 0xf4, + 0xd2, ]); }, bytesToHex(uint8Array) {