聊天:修改军团消息的bug
This commit is contained in:
@@ -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 };
|
||||
|
||||
Reference in New Issue
Block a user