damus

nostr ios client
git clone git://jb55.com/damus
Log | Files | Refs | README | LICENSE

commit b1c7ef9bd9033c0da2ad2d27e2e34abbd4fdc160
parent 7ecb9aad62473cf4a55b5c7963048834560e6aa4
Author: William Casarin <jb55@jb55.com>
Date:   Fri,  6 Oct 2023 10:40:35 -0700

Fix profiles not updating

Timestamped IDs were not being initialized properly when writing profile
indices. This means that every profile was indexed with timestamp 0.
derp. Fix this!

Changelog-Fixed: Fix profiles not updating

Diffstat:
Mnostrdb/nostrdb.c | 2+-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/nostrdb/nostrdb.c b/nostrdb/nostrdb.c @@ -391,7 +391,7 @@ static inline void ndb_tsid_init(struct ndb_tsid *key, unsigned char *id, uint64_t timestamp) { memcpy(key->id, id, 32); - key->timestamp = 0; + key->timestamp = timestamp; } // useful for range-searching for the latest key with a clustered created_at timen