setTyping: failure diagnostics (journald log on error) — API confirmed working via curl (200); if Element shows no indicator during turns, it's display-side

This commit is contained in:
pierre committed 2026-09-06 13:12:38 +03:00
1 parent b958eaab4c
commit 65e2ee083e
1 file changed
+5 -1
+5 -1
View File
@@ -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 {