[이슈처리 5] MyTalk 에서 unread count 보이는 문제 수정.

This commit is contained in:
leejinho 2019-11-22 09:03:32 +09:00
parent 447577aa1b
commit d90e93f0c6
4 changed files with 10 additions and 1 deletions

View File

@ -171,6 +171,11 @@
[userInfos]="userInfoList"
[loginRes]="loginRes"
[sessionVerInfo]="sessionVerInfo"
[isShowUnreadCount]="
roomInfo.roomType !== RoomType.Mytalk &&
roomInfo.roomType !== RoomType.Bot &&
roomInfo.roomType !== RoomType.Allim
"
(moreEvent)="onMoreEvent($event)"
(massDetail)="onMassDetail($event)"
(save)="onSave($event)"

View File

@ -151,6 +151,8 @@ export class MessagesComponent implements OnInit, OnDestroy, AfterViewInit {
snackBarPreviewEvent: MatSnackBarRef<SimpleSnackBar>;
RoomType = RoomType;
constructor(
private store: Store<any>,
private sessionStorageService: SessionStorageService,

View File

@ -154,7 +154,7 @@
<div class="time secondary-text">
<ul>
<li>{{ getUnreadCount(message) }}</li>
<li *ngIf="isShowUnreadCount">{{ getUnreadCount(message) }}</li>
<li>
{{ moment(message.sendDate).toDate() | date: 'a hh:mm' }}
</li>

View File

@ -42,6 +42,8 @@ export class MessagesComponent implements OnInit {
userInfos?: UserInfo[];
@Input()
sessionVerInfo: VersionInfo2Response;
@Input()
isShowUnreadCount = true;
@Output()
openProfile = new EventEmitter<UserInfo>();