聊天:增加用户信息等字段

This commit is contained in:
liangtongchuan
2021-03-17 18:05:48 +08:00
parent 76aee57e67
commit 94ca8614b4
5 changed files with 43 additions and 8 deletions
+1 -1
View File
@@ -53,7 +53,7 @@ export async function pushGuildNoticeUpdateMsg(roleId: string, roleName: string,
export async function pushGuildUpStructureMsg(roleId: string, roleName: string, guildInfo: Partial<GuildType>) {
const { code, structure } = guildInfo;
if (!code || !structure || !isArray(structure)) return null;
const guild = pick(guildInfo, ['code', 'structure']);
const guild = pick(guildInfo, ['code', 'structure', 'name']);
const content = JSON.stringify({ roleId, roleName, guild });
const msgData = await createGroupMsg(roleId, roleName, CHANNEL_PREFIX.GUILD, code, MSG_TYPE.RICH_TEXT, MSG_SOURCE.GUILD_STRUCTURE_LV_UP, content, null, null);
await pushGroupMsgToRoom(msgData);