聊天:修改军团消息的bug

This commit is contained in:
liangtongchuan
2021-03-19 19:49:46 +08:00
parent 0a562eefcd
commit 44313009b1

View File

@@ -179,6 +179,7 @@ async function recentGroupMsgs(roomId: string, count?: number) {
const roleInfos = await getSimpleRoleInfos(roleIds);
const result = roleInfos ?
msgs.map(msg => {
if (!sendFromRole(msg)) return msg;
for (let roleInfo of roleInfos) {
if (roleInfo.roleId === msg.roleId) {
return { ...msg, roleInfo };