Skip to content

Conversation

@digiboridev
Copy link
Contributor

@januscla
Copy link

januscla commented Nov 7, 2025

Thanks for your contribution, @digiboridev! Please make sure you sign our CLA, as it's a required step before we can merge this.

Copy link
Member

@lminiero lminiero left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks, this looks useful! A couple of notes inline.

json_t *content_type_text = json_object_get(root, "content_type");
if(content_type_text && json_is_string(content_type_text))
content_type = json_string_value(content_type_text);
/* Retrieve the content message */
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Indentation of this comment seems broken.

@lminiero
Copy link
Member

It looks like merging #3602 introduced a conflict here, could you take care of it?

As a side note, please let me if you have questions on my previous note on validation, as I think that's the only thing that needs addressing before we can merge this too.

@digiboridev
Copy link
Contributor Author

It looks like merging #3602 introduced a conflict here, could you take care of it?

As a side note, please let me if you have questions on my previous note on validation, as I think that's the only thing that needs addressing before we can merge this too.

Yes

@lminiero
Copy link
Member

lminiero commented Nov 12, 2025

It looks like there's still a conflict, for the thing you fixed in #3602.

Edit: nevermind that, it was Github showing me old stuff 🙈

Copy link
Member

@lminiero lminiero left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I added a couple of small notes.

That said, it came to my mind that, now that you added two new optional parameters, they should be documented too. You can find the existing documentation for the subscribe request around line 512, which is where we have the text that says

To do that, you need to use the \c subscribe

You'll simply need to add the two new optional parameters in the snippet that follows, before the headers line.

const char *msg_content = NULL;
json_t *msg_content_text = json_object_get(root, "content");
if(msg_content_text && json_is_string(msg_content_text))
msg_content = json_string_value(msg_content_text);
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Indentation is broken here.

@lminiero
Copy link
Member

Looks good, thanks, merging!

@lminiero lminiero merged commit fcfd0c5 into meetecho:master Nov 13, 2025
8 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants