Fix the server buffer merging configuration.

This commit is contained in:
poljar (Damir Jelić) 2018-01-17 10:10:57 +01:00
parent 81a927d3fd
commit 7c38d55c3c

View file

@ -1441,7 +1441,8 @@ def matrix_config_change_cb(data, option):
if option_name == "redactions":
GLOBAL_OPTIONS.redaction_type = RedactType(W.config_integer(option))
elif option_name == "server_buffer":
GLOBAL_OPTIONS.look_server_buf = W.config_integer(option)
GLOBAL_OPTIONS.look_server_buf = ServerBufferType(
W.config_integer(option))
return 1