ucap-doc/documents/업무/6월/4째주/0624.txt
Park Byung Eun 3ac4ee7865 sync
2020-06-26 18:41:12 +09:00

40 lines
795 B
Plaintext

const findIdx = noti.info.indexOf('ProfileImage');
let imgInfo: string = noti.info;
if (findIdx > -1) {
const startIdx = noti.info.indexOf('/', findIdx);
imgInfo = noti.info.substring(startIdx);
}
const roomInfo1 = rooms.filter(
(r) => r.roomId === ru.roomId
)[0];
const cUser = {
...u,
profileImageFile: 'imgInfo'
};
const idx = ru.userInfos.findIndex(
(u3) => Number(u3.seq) === Number(u.seq)
);
if (idx > -1) {
ru.userInfos[idx] = cUser;
}
const tempShort: UserInfoShort[] = [];
ru.userInfos.map((u2) => {
if (Number(u2.seq) === Number(u.seq)) {
tempShort.push(cUser);
} else {
tempShort.push(u2);
}
});
const tempUserShort = [...ru.userInfos, cUser];
tempRoomList.push({
roomInfo: roomInfo1,
userInfoS: tempShort
});
/2020/06/24/PF_338127_103928272.jpg