Report failed BLE invitation delivery without success wording
This commit is contained in:
1 parent
13094ae7d6
commit
920ea7ae2c
1 file changed
+6
-2
@@ -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) {
|
||||
|
||||
Reference in new issue
Block a user