mirror of
https://github.com/SpaceVim/SpaceVim.git
synced 2025-03-13 02:05:40 +08:00
feat(gitter): notify channel list done
This commit is contained in:
parent
cda8520e7f
commit
97b010245f
@ -124,8 +124,9 @@ endfunction
|
||||
|
||||
function! s:gitter_fetch_stdout(id, data, event) abort
|
||||
for line in a:data
|
||||
call s:LOG.debug(line)
|
||||
call s:LOG.debug('fetch_stdout :' . line)
|
||||
endfor
|
||||
call s:LOG.debug('s:fetch_response keys :' . string(keys(s:fetch_response)))
|
||||
for room in keys(s:fetch_response)
|
||||
if s:fetch_response[room].jobid ==# a:id
|
||||
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
|
||||
let s:channels = s:JSON.json_decode(join(s:list_all_channels_result, ''))
|
||||
endif
|
||||
if !chat#windows#is_opened()
|
||||
call chat#notify#noti('gitter protocol channels updated!')
|
||||
endif
|
||||
endfunction
|
||||
|
||||
function! Test(str) abort
|
||||
|
Loading…
x
Reference in New Issue
Block a user