refactor roomlist in new tui.jl
parent
13892cf6d3
commit
32de2d1373
|
@ -14,6 +14,7 @@ include("sync.jl")
|
|||
include("utils.jl")
|
||||
include("user.jl")
|
||||
include("repl.jl")
|
||||
include("tui.jl")
|
||||
|
||||
# types
|
||||
export MatrixServer, MatrixUser, MatrixSync, MatrixMsg
|
||||
|
|
|
@ -484,8 +484,6 @@ end
|
|||
# Execution #
|
||||
#############
|
||||
|
||||
roomlist = Dict()
|
||||
|
||||
function do_cmd!(command::MatrixCommand, repl)
|
||||
global user
|
||||
if command.spec.kind == CMD_MSG
|
||||
|
|
|
@ -0,0 +1,5 @@
|
|||
roomlist = Dict()
|
||||
|
||||
function updateroomlist(user::MatrixUser)
|
||||
global roomlist = listjoined(user)
|
||||
end
|
Loading…
Reference in New Issue