From c198959fd7eda99beed63c55abbd8f140d4d30d2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Nicol=C3=B2=20Balzarotti?= Date: Tue, 18 Sep 2018 09:22:26 +0200 Subject: [PATCH] add comments --- src/rooms.jl | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/src/rooms.jl b/src/rooms.jl index 0556c77..e831f6f 100644 --- a/src/rooms.jl +++ b/src/rooms.jl @@ -58,6 +58,14 @@ function joinroom(u::MatrixUser, room_id::String) post(u, join(["rooms", HTTP.escapeuri(room_id), "join"], "/"), Dict{String,String}()) end +#= Events to add: + +x = Dict{String,Any}("membership"=>"join","user_id"=>"@nixo:nixo.xyz","origin_server_ts"=>1537029572015,"age"=>224344448,"prev_content"=>Dict{String,Any}("membership"=>"join","avatar_url"=>nothing,"displayname"=>"nixo"),"event_id"=>"\$1537029572100njqiB:nixo.xyz","content"=>Dict{String,Any}("membership"=>"join","avatar_url"=>"mxc://nixo.xyz/WRPiswpDebphCvsRQicTSyiD","displayname"=>"nixo"),"sender"=>"@nixo:nixo.xyz","replaces_state"=>"\$1536679158150Cmcgz:nixo.xyz","state_key"=>"@nixo:nixo.xyz","unsigned"=>Dict{String,Any}("prev_sender"=>"@nixo:nixo.xyz","replaces_state"=>"\$1536679158150Cmcgz:nixo.xyz","age"=>224344448,"prev_content"=>Dict{String,Any}("membership"=>"join","avatar_url"=>nothing,"displayname"=>"nixo")),"room_id"=>"!txmboRHuIhMLNpOAyq:nixo.xyz","type"=>"m.room.member") + +x = Dict{String,Any}("event_id"=>"\$153691926341cbnvi:nixo.xyz","content"=>Dict{String,Any}("session_id"=>"4qEwc+2D5UdIUz/OeWp3V7+p2utCx3tCsfM7lrm3Wis","algorithm"=>"m.megolm.v1.aes-sha2","device_id"=>"EJJLBSNNXU","ciphertext"=>"AwgBEoAB7Jz1CXI9oDT6HJs0NtzMGLXnsZC4TIwJVtwLqP2DaLJRkiIdOgxW9lSCqrvWnmLkiUhqrdvAAC01C9zhH1HN7PgO31ZKVVdRlRobWxHb3/x6PCFJDRl8kcfy2xE3zHmI5s/i9GfzUbEhvgpoYHejJhbKri92BAInu5rmumnlA5Jhdy4wKXJQcN8wPBaYCoe9QpmGZzpyK9VbRm2Jhz5ZUPx2XZuTv8KEmtQjFneJCbjb95QELYE6ArrmAg4lgJW5A9T1v4NnjA4","sender_key"=>"q4um1YU6MvVfCnILkQiQU15L/yEMAFBm2G+x0/u/jwA"),"room_id"=>"!txmboRHuIhMLNpOAyq:nixo.xyz","unsigned"=>Dict{String,Any}("age"=>334652905),"sender"=>"@nixo:nixo.xyz","user_id"=>"@nixo:nixo.xyz","origin_server_ts"=>1536919263558,"age"=>334652905,"type"=>"m.room.encrypted") + + +=# function history(u::MatrixUser, room_id::String; limit = 15) res = roomhistory(u, room_id, limit = limit) map(x -> try