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:
1 parent
b958eaab4c
commit
65e2ee083e
1 file changed
+5
-1
+5
-1
@@ -316,7 +316,11 @@ pub fn setTyping(alloc: std.mem.Allocator, io: Io, token: []const u8, user_id: [
|
|||||||
else
|
else
|
||||||
alloc.dupe(u8, "{\"typing\":false}") catch return;
|
alloc.dupe(u8, "{\"typing\":false}") catch return;
|
||||||
defer alloc.free(body);
|
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 {
|
pub fn sendText(alloc: std.mem.Allocator, io: Io, token: []const u8, room: []const u8, body: []const u8) ![]u8 {
|
||||||
|
|||||||
Reference in new issue
Block a user