1. 봇방(roomtype === B) 리스트에서 제거. >> [PC 로그인 알림] 봇방 제거.

2. 쪽지보내기 > 이미지 첨부시 이미지 사이즈 커지는 문제 수정.
This commit is contained in:
leejinho 2020-02-11 14:07:25 +09:00
parent 0005bebdec
commit 3015b5ef87
2 changed files with 6 additions and 2 deletions

View File

@ -89,7 +89,8 @@ import {
InfoData, InfoData,
UserShortData, UserShortData,
UserData, UserData,
SSVC_TYPE_ROOM_INFO_RES SSVC_TYPE_ROOM_INFO_RES,
RoomType
} from '@ucap-webmessenger/protocol-room'; } from '@ucap-webmessenger/protocol-room';
import { LoginResponse } from '@ucap-webmessenger/protocol-authentication'; import { LoginResponse } from '@ucap-webmessenger/protocol-authentication';
import { import {
@ -214,7 +215,9 @@ export class Effects {
switch (res.SSVC_TYPE) { switch (res.SSVC_TYPE) {
case SSVC_TYPE_SYNC_ROOM_DATA: case SSVC_TYPE_SYNC_ROOM_DATA:
roomList.push( roomList.push(
...(res as RoomData).roomInfos.filter(v => v.isJoinRoom) ...(res as RoomData).roomInfos.filter(
v => v.isJoinRoom && v.roomType !== RoomType.Bot
)
); );
break; break;
case SSVC_TYPE_SYNC_ROOM_USER: case SSVC_TYPE_SYNC_ROOM_USER:

View File

@ -182,6 +182,7 @@ export class WriteComponent implements OnInit, OnDestroy, AfterViewInit {
const dataUrl = await FileUtil.fromBlobToDataUrl(file); const dataUrl = await FileUtil.fromBlobToDataUrl(file);
const img = document.createElement('img'); const img = document.createElement('img');
img.src = dataUrl as string; img.src = dataUrl as string;
img.setAttribute('style', 'max-height:250px; max-width:250px;');
img[ATTR_FILE] = file; img[ATTR_FILE] = file;
self.insertNode(img); self.insertNode(img);
} }