jabber.developer
  • Joined on 2025-06-19
jabber.developer commented on pull request devs/cproof#105 2026-04-28 16:10:49 +00:00
merge/upstream-full

I mean get_message_from_editor_async function is rendered obsolete by new editor function from upsteam.

jabber.developer commented on issue devs/cproof#112 2026-04-28 15:42:21 +00:00
Follow-up issues for PR #105

cleanup later was obviously regarding our now-obsolete editor_async

jabber.developer commented on pull request devs/cproof#105 2026-04-28 15:33:03 +00:00
merge/upstream-full

I am not sure where to reply, but in the roster_update_presence, resource is a param. setting it to null before returning does not increase safety. it will just override a local variable.

jabber.developer commented on pull request devs/cproof#94 2026-04-26 22:10:19 +00:00
no-DB mode implementation

nit: for readability, maybe we can do something like that?

jabber.developer commented on pull request devs/cproof#94 2026-04-26 22:10:19 +00:00
no-DB mode implementation

I feel that it's overly complicated. Starting from the GString* full_line, everything could be done in nearly a one-liner:

jabber.developer commented on pull request devs/cproof#94 2026-04-26 22:10:19 +00:00
no-DB mode implementation

please make early return here to significantly reduce nesting

jabber.developer commented on pull request devs/cproof#94 2026-04-26 22:10:19 +00:00
no-DB mode implementation

it could be extracted to another method

jabber.developer commented on pull request devs/cproof#94 2026-04-26 22:10:19 +00:00
no-DB mode implementation

why not use g_file_test in a similar fashion here?

jabber.developer commented on pull request devs/cproof#94 2026-04-26 22:10:19 +00:00
no-DB mode implementation

early exit here would lower the nesting and potentially improve readability

jabber.developer commented on pull request devs/cproof#94 2026-04-26 22:10:19 +00:00
no-DB mode implementation

nit: Why not strdup("")?

jabber.developer commented on pull request devs/cproof#94 2026-04-26 22:10:19 +00:00
no-DB mode implementation

note for myself: come back to it and rereview

jabber.developer commented on pull request devs/cproof#94 2026-04-26 22:10:19 +00:00
no-DB mode implementation

I am not sure if it's ok to just silently continue in this place. It deserves at the very least debug log.

jabber.developer commented on pull request devs/cproof#94 2026-04-26 22:10:19 +00:00
no-DB mode implementation

I am not sure if the overlap between stanza_ids and archive_ids is a valid approach. We might want to separate them in two distinct tables.

jabber.developer commented on pull request devs/cproof#94 2026-04-26 22:10:19 +00:00
no-DB mode implementation

Please, extract bom-check to a different method.

jabber.developer commented on pull request devs/cproof#94 2026-04-26 22:10:19 +00:00
no-DB mode implementation

It seemingly mirrors functionality of the original database.c + adds integrity verification.

jabber.developer commented on pull request devs/cproof#94 2026-04-26 22:10:19 +00:00
no-DB mode implementation

Here and in other places, can we return necessary documentation detailing DB fields, decisions, and other useful points?

jabber.developer commented on pull request devs/cproof#94 2026-04-26 22:10:19 +00:00
no-DB mode implementation

We should add error logging here.

jabber.developer commented on pull request devs/cproof#94 2026-04-26 22:10:19 +00:00
no-DB mode implementation

We might want to also check integrity of the tables (whether they exist + maybe even their columns). But it would introduce further complexity and should be a subject of a separate issue.

jabber.developer commented on pull request devs/cproof#94 2026-04-26 22:10:19 +00:00
no-DB mode implementation

Maybe auto_char, if common.h import is allowed?

jabber.developer suggested changes for devs/cproof#94 2026-04-26 22:10:19 +00:00
no-DB mode implementation

Generally, it's good and well-written. Some parts require minor polish + merge to upstream. Overall, it's a solid job.