Fix typing notification
parent
9017614387
commit
01e0c780fa
|
@ -84,10 +84,7 @@ function history(u::MatrixUser, room_id::String; limit = 15)
|
||||||
end
|
end
|
||||||
|
|
||||||
function sendtyping(u::MatrixUser, room_id::String; typing = true, timeout = 30000)
|
function sendtyping(u::MatrixUser, room_id::String; typing = true, timeout = 30000)
|
||||||
path = join([u.server.instance, API_PATH,
|
path = string("rooms/", HTTP.escapeuri(room_id), "/typing/", u.userid)
|
||||||
string("rooms/", HTTP.escapeuri(room_id), "/typing/", u.userid)], "/")
|
|
||||||
data = Dict{String,Any}("typing" => typing, "timeout" => timeout)
|
data = Dict{String,Any}("typing" => typing, "timeout" => timeout)
|
||||||
@show data
|
|
||||||
@show path
|
|
||||||
put(u, path, data)
|
put(u, path, data)
|
||||||
end
|
end
|
||||||
|
|
Loading…
Reference in New Issue