feat: add update info sse message

This commit is contained in:
Tristan Yang
2023-06-14 22:30:47 +08:00
parent 62e0bbc89e
commit 12598eaab6
2 changed files with 13 additions and 1 deletions
+6
View File
@@ -24,6 +24,7 @@ import {
} from "@/app/slices/footprint";
import { clearChannelMessage, removeChannelSession } from "@/app/slices/message.channel";
import { removeUserSession } from "@/app/slices/message.user";
import { updateInfo } from "@/app/slices/server";
import { setReady } from "@/app/slices/ui";
import { updateContactStatus, updateUsersByLogs, updateUsersStatus } from "@/app/slices/users";
import { updateCallInfo } from "@/app/slices/voice";
@@ -152,6 +153,11 @@ export default function useStreaming() {
keepAlive();
dispatch(setReady());
break;
case "organization_config_changed": {
const { name, description } = data;
dispatch(updateInfo({ name, description }));
break;
}
case "group_message_cleared": {
const { gid } = data;
dispatch(clearChannelMessage(gid));