From 920ea7ae2ca32135015b4dc867ca9f99737c3ecb Mon Sep 17 00:00:00 2001 From: evgeny Date: Fri, 30 Oct 2026 23:18:13 +0100 Subject: [PATCH] Report failed BLE invitation delivery without success wording --- tools/cgathui_common/ble_etcp.c | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/tools/cgathui_common/ble_etcp.c b/tools/cgathui_common/ble_etcp.c index d9f299e3..776bdd69 100644 --- a/tools/cgathui_common/ble_etcp.c +++ b/tools/cgathui_common/ble_etcp.c @@ -386,8 +386,12 @@ static size_t nearby(void* arg, struct local_peer* out, size_t capacity) { static void invitation_result(struct ble_etcp* d, struct ble_invite_pending* p, int status) { uint64_t peer = p->peer, request = p->request; memset(p, 0, sizeof(*p)); - DEBUG_INFO(CAT, "BLE invitation delivered peer=%016llx request=%llu status=%d", - (unsigned long long)peer, (unsigned long long)request, status); + if (status == LOCAL_DELIVERY_RECEIVED) + DEBUG_INFO(CAT, "BLE invitation delivered peer=%016llx request=%llu status=%d", + (unsigned long long)peer, (unsigned long long)request, status); + else DEBUG_WARN(CAT, "BLE invitation delivery %s peer=%016llx request=%llu status=%d", + status == LOCAL_DELIVERY_FORBIDDEN ? "forbidden" : "failed", + (unsigned long long)peer, (unsigned long long)request, status); chat_local_delivered(d->instance, request, peer, status); } static int send_invitation(void* arg, uint64_t node, uint64_t request, const void* data, size_t len) {