일정 유입시 대화방 리스트와 쪽지 메시지 안나오는 문제 수정.

This commit is contained in:
leejinho 2020-01-07 17:46:06 +09:00
parent 7171f8b0e0
commit a4d0ccd497
2 changed files with 21 additions and 2 deletions

View File

@ -26,7 +26,7 @@ export class ScheduleComponent implements OnInit {
if (!!this.message.sentMessageJson.date) { if (!!this.message.sentMessageJson.date) {
let str_date = this.message.sentMessageJson.date let str_date = this.message.sentMessageJson.date
.replace(/ /g, '') .replace(/ /g, '')
// .replace(/\n/g, '') .replace(/\n/g, '')
.replace(/(\([월,화,수,목,금,토,일]\))/g, ''); .replace(/(\([월,화,수,목,금,토,일]\))/g, '');
if (str_date.indexOf('오전') > -1) { if (str_date.indexOf('오전') > -1) {
str_date = str_date.replace('오전', ' '); str_date = str_date.replace('오전', ' ');

View File

@ -4,7 +4,9 @@ import {
FileEventJson, FileEventJson,
MassTextEventJson, MassTextEventJson,
TranslationEventJson, TranslationEventJson,
MassTranslationEventJson MassTranslationEventJson,
PlanEventJson,
PlanContentType
} from '@ucap-webmessenger/protocol-event'; } from '@ucap-webmessenger/protocol-event';
import { FileType } from '@ucap-webmessenger/protocol-file'; import { FileType } from '@ucap-webmessenger/protocol-file';
@ -206,6 +208,23 @@ export class StringUtil {
eventMessage = m.original; eventMessage = m.original;
} }
break; break;
case EventType.Plan:
const m = finalEventMessage as PlanEventJson;
switch (m.contents) {
case PlanContentType.New:
eventMessage = '새로운 일정이 등록되었습니다.';
break;
case PlanContentType.Update:
eventMessage = '일정이 수정되었습니다.';
break;
case PlanContentType.Delete:
eventMessage = '일정이 취소되었습니다.';
break;
default:
eventMessage = '일정이 업데이트 되었습니다.';
break;
}
break;
default: default:
{ {