From 65e2ee083e8752a241dac5f9a91a0e216a14fe06 Mon Sep 17 00:00:00 2001 From: Pierre De Lancre Date: Sun, 6 Sep 2026 13:12:38 +0300 Subject: [PATCH] =?UTF-8?q?setTyping:=20failure=20diagnostics=20(journald?= =?UTF-8?q?=20log=20on=20error)=20=E2=80=94=20API=20confirmed=20working=20?= =?UTF-8?q?via=20curl=20(200);=20if=20Element=20shows=20no=20indicator=20d?= =?UTF-8?q?uring=20turns,=20it's=20display-side?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/matrix.zig | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/matrix.zig b/src/matrix.zig index 0967d6e..2e54aea 100644 --- a/src/matrix.zig +++ b/src/matrix.zig @@ -316,7 +316,11 @@ pub fn setTyping(alloc: std.mem.Allocator, io: Io, token: []const u8, user_id: [ else alloc.dupe(u8, "{\"typing\":false}") catch return; defer alloc.free(body); - _ = httpRaw(alloc, io, "PUT", url, token, "application/json", body) catch null; + if (httpRaw(alloc, io, "PUT", url, token, "application/json", body)) |resp| { + alloc.free(resp); + } else |e| { + std.debug.print("matrix_harness: setTyping failed: {s}\n", .{@errorName(e)}); + } } pub fn sendText(alloc: std.mem.Allocator, io: Io, token: []const u8, room: []const u8, body: []const u8) ![]u8 {