diff --git a/README.md b/README.md index 59f612b..3e0f11a 100644 --- a/README.md +++ b/README.md @@ -54,11 +54,11 @@ Skills compose by adoption-list order (`10123`) and trigger tags carry runtime e Didactyl will support local inference, which is very privacy preserving. Remote inference does however have it's advantages, and in those cases Didactyl supports using Bitcoin Lightning and eCash inference providers. -## Current Status — v0.2.33 +## Current Status — v0.2.34 **Active build — this project is barely working. Experiment at your own risk.** -> Last release update: v0.2.33 — Fix user-settings backfill: republish on normal restart when admin_pubkey/dm_protocol missing +> Last release update: v0.2.34 — Remove since filter from kind 1059 DM subscription to fix NIP-17 gift-wrap receive - randomized created_at on gift wraps was being filtered out by g_start_time - Connects to configured relays with auto-reconnect and relay state transition logging - Publishes configured startup events per relay as each relay becomes connected diff --git a/src/main.h b/src/main.h index c3219b9..59241fa 100644 --- a/src/main.h +++ b/src/main.h @@ -12,8 +12,8 @@ // Using DIDACTYL_ prefix to avoid conflicts with nostr_core_lib VERSION macros #define DIDACTYL_VERSION_MAJOR 0 #define DIDACTYL_VERSION_MINOR 2 -#define DIDACTYL_VERSION_PATCH 33 -#define DIDACTYL_VERSION "v0.2.33" +#define DIDACTYL_VERSION_PATCH 34 +#define DIDACTYL_VERSION "v0.2.34" // Agent metadata #define DIDACTYL_NAME "Didactyl" diff --git a/src/nostr_handler.c b/src/nostr_handler.c index c180535..2616481 100644 --- a/src/nostr_handler.c +++ b/src/nostr_handler.c @@ -2848,6 +2848,9 @@ int nostr_handler_subscribe_dms(dm_callback_t callback, void* user_data) { const int need_kind4 = (g_cfg->dm_protocol == DM_PROTOCOL_NIP04 || g_cfg->dm_protocol == DM_PROTOCOL_BOTH) ? 1 : 0; const int need_kind1059 = (g_cfg->dm_protocol == DM_PROTOCOL_NIP17 || g_cfg->dm_protocol == DM_PROTOCOL_BOTH) ? 1 : 0; + DEBUG_INFO("[didactyl] DM subscribe: dm_protocol=%d need_kind4=%d need_kind1059=%d g_start_time=%ld", + (int)g_cfg->dm_protocol, need_kind4, need_kind1059, (long)g_start_time); + if (!need_kind4 && !need_kind1059) { DEBUG_WARN("[didactyl] DM subscription skipped: no protocol selected"); return -1; @@ -2898,7 +2901,6 @@ int nostr_handler_subscribe_dms(dm_callback_t callback, void* user_data) { cJSON_AddItemToObject(filter1059, "kinds", kinds1059); cJSON_AddItemToArray(p_values1059, cJSON_CreateString(g_cfg->keys.public_key_hex)); cJSON_AddItemToObject(filter1059, "#p", p_values1059); - cJSON_AddNumberToObject(filter1059, "since", (double)g_start_time); cJSON_AddNumberToObject(filter1059, "limit", 400); }