public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
To: git-commits@fedoraproject.org
Subject: [rpms/chatty] f44: Update patch for login fix for uppercase usernames
Date: Sat, 24 Oct 2026 11:04:48 GMT	[thread overview]
Message-ID: <179283988856.1.4077845569614265182.rpms-chatty-35a002b0cdb1@fedoraproject.org> (raw)

A new commit has been pushed.

Repo   : rpms/chatty
Branch : f44
Commit : 35a002b0cdb13392d5a9f47130c1c47902c958c9
Author : Tomi Lähteenmäki <lihis@lihis.net>
Date   : 2026-10-24T14:04:23+03:00
Stats  : +29/-28 in 3 file(s)
URL    : https://src.fedoraproject.org/rpms/chatty/c/35a002b0cdb13392d5a9f47130c1c47902c958c9?branch=f44

Log:
Update patch for login fix for uppercase usernames

---
diff --git a/116.patch b/116.patch
deleted file mode 100644
index 5e3fd7a..0000000
--- a/116.patch
+++ /dev/null
@@ -1,26 +0,0 @@
-From 20055b5436bab8cea7085702e224fd109692a2f6 Mon Sep 17 00:00:00 2001
-From: =?UTF-8?q?Tomi=20L=C3=A4hteenm=C3=A4ki?= <lihis@lihis.net>
-Date: Tue, 14 Apr 2026 21:32:44 +0300
-Subject: [PATCH] client: Fix filter creation with uppercase username
-
-Fixes #57
----
- src/cm-client.c | 2 +-
- 1 file changed, 1 insertion(+), 1 deletion(-)
-
-diff --git a/src/cm-client.c b/src/cm-client.c
-index caa1f4c..da7a90c 100644
---- a/libcmatrix-v0.0.4/src/cm-client.c
-+++ b/libcmatrix-v0.0.4/src/cm-client.c
-@@ -505,7 +505,7 @@ matrix_upload_filter (CmClient *self,
-     }
- 
-   cancellable = g_task_get_cancellable (task);
--  uri = g_strconcat ("/_matrix/client/v3/user/", cm_user_get_id (CM_USER (self->cm_account)), "/filter", NULL);
-+  uri = g_strconcat ("/_matrix/client/v3/user/", cm_account_get_login_id (self->cm_account), "/filter", NULL);
-   cm_net_send_json_async (self->cm_net, 2, json_object_ref (filter),
-                           uri, SOUP_METHOD_POST,
-                           NULL, cancellable, cm_upload_filter_cb,
--- 
-GitLab
-

diff --git a/121.patch b/121.patch
new file mode 100644
index 0000000..52dec76
--- /dev/null
+++ b/121.patch
@@ -0,0 +1,27 @@
+diff --git a/src/cm-client.c b/src/cm-client.c
+index 9f6b25d929fa96eff9657f41a7005cfc23bc8c4c..b82c3da867f405b4db75226000823fd3a3b8b758 100644
+--- a/libcmatrix-v0.0.4/src/cm-client.c
++++ b/libcmatrix-v0.0.4/src/cm-client.c
+@@ -1278,8 +1278,7 @@ cm_client_set_user_id (CmClient   *self,
+                        const char *matrix_user_id)
+ {
+   g_autoptr(GString) str = NULL;
+-  GRefString *new_user_id = NULL;
+-  g_autofree char *user_id = NULL;
++  GRefString *user_id = NULL;
+ 
+   g_return_val_if_fail (CM_IS_CLIENT (self), FALSE);
+   g_return_val_if_fail (!self->is_logging_in, FALSE);
+@@ -1298,10 +1297,8 @@ cm_client_set_user_id (CmClient   *self,
+       return FALSE;
+     }
+ 
+-  user_id = g_ascii_strdown (matrix_user_id, -1);
+-  new_user_id = g_ref_string_new_intern (user_id);
+-
+-  cm_user_set_user_id (CM_USER (self->cm_account), new_user_id);
++  user_id = g_ref_string_new_intern (matrix_user_id);
++  cm_user_set_user_id (CM_USER (self->cm_account), user_id);
+   cm_user_list_set_account (self->user_list, self->cm_account);
+ 
+   str = g_string_new (NULL);

diff --git a/chatty.spec b/chatty.spec
index 7cbf03a..edf02a5 100644
--- a/chatty.spec
+++ b/chatty.spec
@@ -18,8 +18,8 @@ Source1: https://gitlab.gnome.org/guidog/libcmatrix/-/archive/v%{libcmatrix_vers
 # We do not want to provide a private library, which is from another
 # project, to be used in other packages.
 Patch0:  0001-hacky-hack.patch
-# https://source.puri.sm/Librem5/libcmatrix/-/merge_requests/116
-Patch1:  116.patch
+# https://gitlab.gnome.org/guidog/libcmatrix/-/merge_requests/121
+Patch1:  121.patch
 
 ExcludeArch:    %{ix86}
 

                 reply	other threads:[~2026-10-24 11:04 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=179283988856.1.4077845569614265182.rpms-chatty-35a002b0cdb1@fedoraproject.org \
    --to=git-commits@fedoraproject.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox