nostrdb/subs: notify on profile notes as well
We missed this in the original subscription code Signed-off-by: William Casarin <jb55@jb55.com>
This commit is contained in:
committed by
Daniel D’Aquino
parent
d7a2064786
commit
b1bbf355de
@@ -2961,6 +2961,15 @@ static void *ndb_writer_thread(void *data)
|
|||||||
note_nkey =
|
note_nkey =
|
||||||
ndb_write_note(&txn, &msg->note,
|
ndb_write_note(&txn, &msg->note,
|
||||||
scratch, scratch_size);
|
scratch, scratch_size);
|
||||||
|
if (note_nkey > 0) {
|
||||||
|
written_notes[num_notes++] =
|
||||||
|
(struct written_note){
|
||||||
|
.note_id = note_nkey,
|
||||||
|
.note = &msg->note,
|
||||||
|
};
|
||||||
|
} else {
|
||||||
|
ndb_debug("failed to write note\n");
|
||||||
|
}
|
||||||
if (msg->profile.record.builder) {
|
if (msg->profile.record.builder) {
|
||||||
// only write if parsing didn't fail
|
// only write if parsing didn't fail
|
||||||
ndb_write_profile(&txn, &msg->profile,
|
ndb_write_profile(&txn, &msg->profile,
|
||||||
|
|||||||
Reference in New Issue
Block a user