Skip to content

Various improvements#2197

Merged
jubalh merged 18 commits into
masterfrom
dev
Jul 22, 2026
Merged

Various improvements#2197
jubalh merged 18 commits into
masterfrom
dev

Conversation

@jubalh

@jubalh jubalh commented Jul 22, 2026

Copy link
Copy Markdown
Member

No description provided.

jubalh added 8 commits July 21, 2026 13:22
For some reason why changed this in below mentioned commit.
I don't see any reason why. Let's restore the correct behaviour.

Revert: 65aff65
Signed-off-by: Michael Vetter <jubalh@iodoru.org>
Enable the changelog generator to extract issue numbers
from 'Fixes:' tags.

Signed-off-by: Michael Vetter <jubalh@iodoru.org>
Was removed in d9f5a2b and replaced with the resourcepart of the
struct.

Ref: d9f5a2b
Signed-off-by: Michael Vetter <jubalh@iodoru.org>
Replace manual deallocation and nullification blocks with
`FREE_SET_NULL` and `GFREE_SET_NULL` macros.

Signed-off-by: Michael Vetter <jubalh@iodoru.org>
Signed-off-by: Michael Vetter <jubalh@iodoru.org>
Signed-off-by: Michael Vetter <jubalh@iodoru.org>
Signed-off-by: Michael Vetter <jubalh@iodoru.org>
Signed-off-by: Michael Vetter <jubalh@iodoru.org>
@jubalh jubalh added this to the next milestone Jul 22, 2026
@jubalh jubalh self-assigned this Jul 22, 2026
jubalh added 10 commits July 22, 2026 12:44
Signed-off-by: Michael Vetter <jubalh@iodoru.org>
Describe all options and their values. Hilight the default.
Our users asked often for a config file that they can edit.
We were reluctant and told them to use the commands inside Profanity
because they will also do checks on the input.

However I think it's time to give powerusers what they asked for.

Signed-off-by: Michael Vetter <jubalh@iodoru.org>
Replace fragile manual string building of timezone with more robust glib solution.

Previously it was assumed a specific length and timezone offset suffix (+00:00).
This broke if the server used a different timezone offset representation (like 'Z'
or +0000).

Signed-off-by: Michael Vetter <jubalh@iodoru.org>
Replace all occurrences of legacy GTimeVal timestamp formatting and
parsing with the modern GDateTime.

Signed-off-by: Michael Vetter <jubalh@iodoru.org>
Replace the not thread safe localtime and strftime manual date
formatting with modern GLib GDateTime.

Using localtime inside multithreaded environments can lead to race conditions.

Signed-off-by: Michael Vetter <jubalh@iodoru.org>
Replace legacy gettimeofday and struct timeval API with standard GLib
g_get_real_time.

gettimeofday is marked as obsolete in POSIX.1-2008.
Using g_get_real_time is more modern, portable, and thread safe.

Signed-off-by: Michael Vetter <jubalh@iodoru.org>
Replace unsafe alloca and manual string concatenation with modern GLib
g_strconcat.

Signed-off-by: Michael Vetter <jubalh@iodoru.org>
Move code from duplicate helper functions _stanza_get_delay_timestamp_xep0203
and _stanza_get_delay_timestamp_xep0091 into parameterized
helper _stanza_get_delay_timestamp that accepts the expected XML namespace.

Signed-off-by: Michael Vetter <jubalh@iodoru.org>
Merge log_database_get_limits_info and log_database_get_limits_info_muc into
a parameterized _db_get_limits_info helper.

Extract the duplicate logic from log_database_get_chat_count and
log_database_get_muc_count into _db_get_int_result.

Signed-off-by: Michael Vetter <jubalh@iodoru.org>
Consolidate SQLite message log parsing loops from chat and MUC
history queries.

Signed-off-by: Michael Vetter <jubalh@iodoru.org>
@jubalh
jubalh merged commit 615ae65 into master Jul 22, 2026
12 checks passed
@jubalh
jubalh deleted the dev branch July 22, 2026 11:04
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant