From 6bd02569178b29e2f6d258d0e9dd50ac5afda84f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Nicol=C3=B2=20Balzarotti?= Date: Mon, 17 Sep 2018 13:38:14 +0200 Subject: [PATCH] global user to fix repl --- src/repl.jl | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/repl.jl b/src/repl.jl index 8c4896e..6ea5bc8 100644 --- a/src/repl.jl +++ b/src/repl.jl @@ -799,9 +799,13 @@ end """Initialize the REPL mode, read config files and start the TUI client """ function repl() + global user userinfo = load_secret_or_login(load_config_file()) repl_init(Base.active_repl) - userinfo + user = MatrixUser(userinfo...) + MatrixChat.updateroomlist(user) + syncstatus = MatrixSync(user) + user end ########