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
|
"""Initialize the REPL mode, read config files and start the TUI client
|
||||||
"""
|
"""
|
||||||
function repl()
|
function repl()
|
||||||
global user
|
global user, rooms_last_batch
|
||||||
userinfo = load_secret_or_login(load_config_file())
|
userinfo = load_secret_or_login(load_config_file())
|
||||||
repl_init(Base.active_repl)
|
repl_init(Base.active_repl)
|
||||||
user = MatrixUser(userinfo...)
|
user = MatrixUser(userinfo...)
|
||||||
|
|
||||||
MatrixChat.updateroomlist(user)
|
MatrixChat.updateroomlist(user)
|
||||||
syncstatus = MatrixSync(user)
|
syncstatus = MatrixSync(user)
|
||||||
|
|
||||||
|
rooms_last_batch = Dict()
|
||||||
|
updateroomlastbatch(sync!(syncstatus))
|
||||||
|
|
||||||
user
|
user
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
|
@ -52,7 +52,6 @@ function remove_hook!(event::Symbol)
|
||||||
false
|
false
|
||||||
end
|
end
|
||||||
|
|
||||||
rooms_last_batch = Dict()
|
|
||||||
function updateroomlastbatch(fullsync::Dict{String,Any})
|
function updateroomlastbatch(fullsync::Dict{String,Any})
|
||||||
global rooms_last_batch
|
global rooms_last_batch
|
||||||
map(x ->
|
map(x ->
|
||||||
|
|
Loading…
Reference in New Issue