40 lines
795 B
Plaintext
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
|
|
|