update rooms on repl()

master
Nicolò Balzarotti 2018-09-18 08:42:25 +02:00
parent 93c8046cb3
commit 049f402c6a
2 changed files with 6 additions and 2 deletions

View File

@ -774,12 +774,17 @@ end
"""Initialize the REPL mode, read config files and start the TUI client
"""
function repl()
global user
global user, rooms_last_batch
userinfo = load_secret_or_login(load_config_file())
repl_init(Base.active_repl)
user = MatrixUser(userinfo...)
MatrixChat.updateroomlist(user)
syncstatus = MatrixSync(user)
rooms_last_batch = Dict()
updateroomlastbatch(sync!(syncstatus))
user
end

View File

@ -52,7 +52,6 @@ function remove_hook!(event::Symbol)
false
end
rooms_last_batch = Dict()
function updateroomlastbatch(fullsync::Dict{String,Any})
global rooms_last_batch
map(x ->