Merge pull request #2041 from profanity-im/some-improvements
All checks were successful
CI / Check spelling (pull_request) Successful in 20s
CI / Check coding style (pull_request) Successful in 40s
CI / Linux (debian) (pull_request) Successful in 9m34s
CI / Linux (ubuntu) (pull_request) Successful in 9m53s
CI / Linux (fedora) (pull_request) Successful in 10m32s
CI / Linux (arch) (pull_request) Successful in 12m14s

Summary:
- Print the final storage location when successfully decrypting a file with `aesgcm://` source.
- Less GString
- Re-factor cmd_presence()
- Improve const correctness
- Use correct free function. Fixes: 75d7663 ("Free wins summary list")

Pull Request Source: https://github.com/profanity-im/profanity/pull/2041

Author: Steffen Jaeckel <s@jaeckel.eu>
This commit is contained in:
Michael Vetter
2025-07-02 21:33:21 +02:00
committed by Jabber Developer
parent 74819840b1
commit 3b800c9fb9
8 changed files with 52 additions and 73 deletions

View File

@@ -219,7 +219,7 @@ returns_fulljid_when_exists(void** state)
{
Jid* jid = jid_create("localpart@domainpart/resourcepart");
char* result = jid_fulljid_or_barejid(jid);
const char* result = jid_fulljid_or_barejid(jid);
assert_string_equal("localpart@domainpart/resourcepart", result);
@@ -231,7 +231,7 @@ returns_barejid_when_fulljid_not_exists(void** state)
{
Jid* jid = jid_create("localpart@domainpart");
char* result = jid_fulljid_or_barejid(jid);
const char* result = jid_fulljid_or_barejid(jid);
assert_string_equal("localpart@domainpart", result);