From 97b010245f42bda351fd050a3c6ccf7806b9b007 Mon Sep 17 00:00:00 2001 From: wsdjeg Date: Tue, 3 May 2022 00:58:40 +0800 Subject: [PATCH] feat(gitter): notify channel list done --- bundle/vim-chat/autoload/chat/gitter.vim | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/bundle/vim-chat/autoload/chat/gitter.vim b/bundle/vim-chat/autoload/chat/gitter.vim index bc37c2a35..bc202aaab 100644 --- a/bundle/vim-chat/autoload/chat/gitter.vim +++ b/bundle/vim-chat/autoload/chat/gitter.vim @@ -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