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)); });