update rooms on repl()
parent
93c8046cb3
commit
049f402c6a
|
@ -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
|
||||
|
||||
|
|
|
@ -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 ->
|
||||
|
|
Loading…
Reference in New Issue