Fix typing notification

master
Nicolò Balzarotti 2019-02-11 18:53:27 +01:00
parent 9017614387
commit 01e0c780fa
No known key found for this signature in database
GPG Key ID: E5900B8AC02DE455
1 changed files with 1 additions and 4 deletions

View File

@ -84,10 +84,7 @@ function history(u::MatrixUser, room_id::String; limit = 15)
end
function sendtyping(u::MatrixUser, room_id::String; typing = true, timeout = 30000)
path = join([u.server.instance, API_PATH,
string("rooms/", HTTP.escapeuri(room_id), "/typing/", u.userid)], "/")
path = string("rooms/", HTTP.escapeuri(room_id), "/typing/", u.userid)
data = Dict{String,Any}("typing" => typing, "timeout" => timeout)
@show data
@show path
put(u, path, data)
end