From 3b31a75df923ac239fb506b0cfc3afa8ffc5e613 Mon Sep 17 00:00:00 2001 From: moonrailgun Date: Thu, 26 Aug 2021 20:46:40 +0800 Subject: [PATCH] =?UTF-8?q?refactor:=20=E5=8A=A0=E5=85=A5=E7=BE=A4?= =?UTF-8?q?=E7=BB=84=E5=9B=9E=E8=B0=83?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- shared/redux/setup.ts | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/shared/redux/setup.ts b/shared/redux/setup.ts index 9a897fc9..f96502f2 100644 --- a/shared/redux/setup.ts +++ b/shared/redux/setup.ts @@ -78,6 +78,10 @@ function listenNotify(socket: AppSocket, store: AppStore) { ); }); + socket.listen('group.add', (groupInfo) => { + store.dispatch(groupActions.appendGroups([groupInfo])); + }); + socket.listen('group.updateInfo', (groupInfo) => { store.dispatch(groupActions.updateGroup(groupInfo)); });