refactor roomlist in new tui.jl

master
Nicolò Balzarotti 2018-09-17 13:28:49 +02:00
parent 13892cf6d3
commit 32de2d1373
3 changed files with 6 additions and 2 deletions

View File

@ -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

View File

@ -484,8 +484,6 @@ end
# Execution #
#############
roomlist = Dict()
function do_cmd!(command::MatrixCommand, repl)
global user
if command.spec.kind == CMD_MSG

5
src/tui.jl Normal file
View File

@ -0,0 +1,5 @@
roomlist = Dict()
function updateroomlist(user::MatrixUser)
global roomlist = listjoined(user)
end