1
0
mirror of https://github.com/SpaceVim/SpaceVim.git synced 2025-03-15 19:45:46 +08:00

feat(gitter): notify channel list done

This commit is contained in:
wsdjeg 2022-05-03 00:58:40 +08:00
parent cda8520e7f
commit 97b010245f

View File

@ -124,8 +124,9 @@ endfunction
function! s:gitter_fetch_stdout(id, data, event) abort function! s:gitter_fetch_stdout(id, data, event) abort
for line in a:data for line in a:data
call s:LOG.debug(line) call s:LOG.debug('fetch_stdout :' . line)
endfor endfor
call s:LOG.debug('s:fetch_response keys :' . string(keys(s:fetch_response)))
for room in keys(s:fetch_response) for room in keys(s:fetch_response)
if s:fetch_response[room].jobid ==# a:id if s:fetch_response[room].jobid ==# a:id
let s:fetch_response[room].response += a:data let s:fetch_response[room].response += a:data
@ -204,6 +205,9 @@ function! s:get_all_channels_exit(id, data, event) abort
if a:data ==# 0 if a:data ==# 0
let s:channels = s:JSON.json_decode(join(s:list_all_channels_result, '')) let s:channels = s:JSON.json_decode(join(s:list_all_channels_result, ''))
endif endif
if !chat#windows#is_opened()
call chat#notify#noti('gitter protocol channels updated!')
endif
endfunction endfunction
function! Test(str) abort function! Test(str) abort