diff --git a/.config/zsh/functions/mx-set-status b/.config/zsh/functions/mx-set-status index 6aa4507..6c42286 100755 --- a/.config/zsh/functions/mx-set-status +++ b/.config/zsh/functions/mx-set-status @@ -19,6 +19,7 @@ local response=$(curl --silent \ "https://${host}/_matrix/client/v3/presence/${user}/status") local presence=$(jq --raw-output .presence <<<${response}) local status_msg=$(jq --raw-output .status_msg <<<${response}) +[[ ${status_msg} == "null" ]] && status_msg="" if [[ -v 1 ]]; then mxstatus=${1}